Sunday, December 26, 2010

Using jQuery Intellisense in an external javascript file.

Create an aspx page and an external javascript file. Call the javascript external file in your aspx page.

1:  <script src="js/jquery-1.4.1.js" type="text/javascript">  
2:  </script>  
3:  <script src="js/Sample.js" type="text/javascript">  
4:  </script>  

In your external .js file, add the following code on top of the js file page.
 ///<reference path="jquery-1.4.1.js"/>  
 function dothis()  
     //your code here  


Post a Comment