How do I enable jQuery intellisense on netbeans 7.1?

Possible duplicate:
Completing the jQuery plugin for NetBeans

I downloaded the latest Netbeans, posted the following codes, but intellisense is not working.

<script type="text/javascript" src="js/jQuery.js"></script>

<script type="text/javascript">           
    $(document).ready(function() {
        $("a").click(function() {
            alert("Hello world!");
        });
    });
</script>

      

+3


source to share


1 answer


I just found this link and should help you.

Follow these steps.

  • In your project folder, create a folder named js and add it to your project.

  • Find the jQuery library downloaded to your computer. Copy the file to this js folder



Also, it says that initiate intellisense includes the library itself

<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
                                         <!-- ^ Be sure to include the version number -->
<script type="text/javascript">
     // Try it inside here and it should work
</script>

      

The display of intellisense

+5


source







All Articles