Monday, 10 July 2017

short code for js in netbeans shortcut

Code 1:  

Type sc and press enter for script code 

Output:

<script type="text/javascript">      </script>

Code 2: 

Type d and press enter for document ready 

Output: 

<script type="text/javascript">
     $(document).ready(function(e) {   

       });
 </script>

Code 3: 

Type p and press enter for ajax post 

Output:

<script type="text/javascript">    
 $(document).ready(function (e) {  
       var post_data = {};       
        $.post("", post_data, function (res) {   
       });  
   }); 
</script>

No comments :

Post a Comment