JQuery Multiline Comments

JQuery Multiline Comments

Here we will see how to use multiline comments in JQuery code. It is very similar to other languages like C#,c++ and Java.

<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 (){
/*        $("#button1").click( function(){
        var textValue = "This is value assigned to text area using Jquery"  ;
        $('#TextArea1').val( textValue );

*/
         });
     });
    </script>

Description:

The code written inside a block starting with /* and ending with */ will never be executed.

In my previous post you saw how to comment single line of code.

JQuery is most loved scripting language for Client side development.

Tags:

Basics of jqueryLearning JqueryJQuery Single line commentsJQuery SlideJquery Trim StringJQuery Animate Div Height and WidthGoogle JQuery CDNHow to call function in JQueryHow To Hide Div On Click Using JQueryJquery Dropdown Selected ValueAsp.net JQuery Calendar Control

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.