Wednesday, February 20, 2013

jQuery

 jQuery Syntax

The jQUery syntax is tailor made for selecting HTML elements and perform some action on the elements.
Basic syntax is : $(selector).action()

-> A $ sign to define/access jQuery
-> A (selector) to query HTML elements
-> A jQuery action() to be performed on the elements


Examples:
$(this).hide() - hides the current element.
$("p").hide() - hides all elements.
$(".test").hide() - hides all elements with class="test".
$("#test").hide() - hides the elements with id="test"

1 comment:

  1. Thanks for taking the time and writing this post. The estimate of writing your site post is very good.The simplest language you use when writing articles is appreciated.The information you give will prove to be of great value to me,I hope that. It is our wish that you continue to write great articles in such a future.Thanks for sharing this article. Thank you

    ReplyDelete