...

Library - JQuery

Back to Course

Lesson Description


Lession - #556 JQuery Syntax


Syntax:

 $(selector>
.action(>

$ sign: It grants get entry to to jQuery.

(selector>
:
It is used to locate HTML elements.

jQuery action(>
:
It is used to carry out actions at the elements.

Used to hide the current detail.

$(this>
.hide(>


Used to hide all elements.


$("p">
.hide(>


Used to hide all elements with class=”test”.


$(".test">
.hide(>
Used to hide the element with id=”test”.

$("#test">
.hide(>
Document Ready Event: jQuery Methods are inside a Document ready event for easy reading of code.

$(file>
.ready(function(>
>
;
This is to check and stop the jquery earlier than the file is completed loading. This approach additionally lets in you to have JavaScript code earlier than the frame of your file,