Eclipse is not automatically prompted when you write JavaScript or jquery code in the JSP in eclipse, so you need to install the plugin in Eclipse, which is named: Spket IDE, which can exist as a plugin, can also exist as a standalone IDE. It has the function of prompting JS or jquery code.
(1) Spket IDE:
Please click Spket IDE Plugin
Note: Download the inside of the plugin plugin, after downloading the unzip there will be two folders, as shown:
Copy the contents of the features and plugins folders into the features and plugins folders in your Eclipse installation directory, and then restart your eclipse.
(2) After restarting your eclipse, after opening window-preference, you can see the spket in the list on the left, as shown in:
(3) Click on the JavaScript Profiles, you can see the corresponding information inside, where there is no jquery, you need to click on new, will pop up a dialog box, you need to fill in a profile name, preferably pure English, see knowingly righteousness, OK click Add Library, then select the jquery in the dropdown box, finally, you just need to click Add File, add the jquery file (jquery1.**) you use in your project, and you are done with the jquery configuration. Here are the tests for your configuration, such as the test for JS and jquery, respectively:
That's all I'm suggesting JS or jquery code for installing the Spket plugin in eclipse.
Article source: 64123209 thanks to bloggers for sharing
Hint JS or jquery code in eclipse