JQuery Single line comments

JQuery Single line comments

You can comment the code of Jquery using single line as shown in below example. It is very similar to most popular languages.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    <script type="text/javascript" language="javascript">
    $(document).ready( function (){
        $("#button2").click( function(){
//        var textValue = "This is value assigned to text area using Jquery"  ;
//        $('#TextArea1').val( textValue );

alert(‘Code commented’);

         });
     });
    </script>

Description:

// is used to comment line of code.

Tags:

Online html editor online JavaScript editorJQuery Multiline CommentsC# Read File Line By LineLearning JqueryBasics of jqueryJQuery SlideC# File.ReadLines() .net 4.0C# SystemIOFileReadAllLines() methodJquery Trim StringJQuery Animate Div Height and Widthhow to purchase online

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.