jQuery Format.
< script type="text/javascript" >
$(document).ready(function(){
})
< /script >
jQuery is an JavaScript Library.
jQuery Mostly minimized JavaScript Programming.
<
script type="text/javascript"
>
$(document).ready(function(){
$(".classname").click(function(){
})
$(this).hide();
})
<
/script
>
jQuery selectors allow the user to select and manipulate all HTML Elements .
Selectors are mainly used to find by id,class,attribute,name or by types.
< script type="text/javascript" >In jQuery Events represents the precise moment when an operation is been don .
Moving a Mouse over an Element strucure .
selecting an Radiobutton.
$("p").click(function(){The HTML DOM document object is the specified owner of all other objects in any web page .
Finding sn HTML ELement as .
document.getElementById(id).In jQuery Effects are used at any specific time according to required platform.
For Example :
$("#s1").click(function(){
$("p").hide(1500);
});
$("#s2").click(function(){
$("p").show();
});
$("#s2").click(function(){
$("p").toggle();
});
In jQuery traversing moving through each element and finding HTML elements.
Which are based on relation or by other elements.
Mainly ther are different types of traversing such as:
For Example :
AJAX is a Framework of exchanging a data with a server updating parts of a web page instead of complete page.
AJAX Asynchronous JavaScript and XML.
In AJAX load() method loads data from server returns into a selected element.
For Example:
<
script type="text/javascript"
>
$("button").click(function(){
$("#div1").load("abc.txt",function(t1txt,t2txt,xhr){
if(t2txt=="found")
alert("loading......")
if(t2txt=="notfound")
alert("Error Message:" + xht.status + ":" +xhr.statusText);
});
});
<
/script
>