Thursday, 30 June 2011

All JQuery Functions

Function
Description
$(selector).hide()
Hide selected elements
$(selector).show()
Show selected elements
Show selected elements
Hide selected elements
Toggle hide and show for selected elements
$(selector).toggle()
Toggle (between hide and show) selected elements
$(selector).slideDown()
Slide-down (show) selected elements
$(selector).slideUp()
Slide-up (hide) selected elements
Slide-show selected elements by adjusting height
Slide-hide selected elements by adjusting height
Toggle slide-hide and slide-show for selected elements
$(selector).slideToggle()
Toggle slide-up and slide-down of selected elements
$(selector).fadeIn()
Fade in selected elements
$(selector).fadeOut()
Fade out selected elements
$(selector).fadeTo()
Fadeout selected elements to an opacity
Fade in selected elements to full opacity
Fade out selected elements to zero opacity
Fade selected elements to a given opacity
$(selector).animate()
Run a custom animation on selected elements
Applies a "custom" animation for selected elements
$(selector).html(content)
Changes the (inner) HTML of selected elements
$(selector).append(content)
Appends content to the (inner) HTML of selected elements
$(selector).prepend(content)
"Prepends" content to the (inner) HTML of selected elements
$(selector).after(content)
Adds HTML after selected elements
$(selector).before(content)
Adds HTML before selected elements
$(selector).css(name,value)
Set the value of one style property for matched elements
$(selector).css({properties})
Set multiple style properties for matched elements
$(selector).css(name)
Get the style property value of the first matched element
$(selector).height(value)
Set the height of matched elements
$(selector).width(value)
Set the width of matched elements
$(selector).load(url,data,callback)
Load remote data into selected elements
$.ajax(options)
Load remote data into an XMLHttpRequest object
$.get(url,data,callback,type)
Load remote data using HTTP GET
$.post(url,data,callback,type)
Load remote data using HTTP POST
$.getJSON(url,data,callback)
Load remote JSON data using HTTP GET
$.getScript(url,callback)
Load and execute a remote JavaScript file

No comments:

Post a Comment