.ajaxSuccess() in jQuery

It will be executed whenever an Ajax request completed successfully..

.ajaxSuccess()

// It will bind when an AJAX request completes successfully:

$(document).ajaxSuccess(function() {
    $( “.log” ).text( “Triggered ajaxSuccess handler.” );
});

Read more

.animate() in jQuery

It helps add a custom animation of a set of CSS properties.

.animate()

// it moves an element “div_id” to the right, until it has reached a left property of 450px:

$(“button”).click(function(){
    $(“#div_id”).animate({left:’450px’});
});

Read more

.attr() in jQuery

It helps to get the value of an attribute for the first element in the set of matched elements.

.attr()

// To set the width attribute of an image to 400.

$(“button”).click(function(){
    $(“img”).attr(“width”,”400″);
});

Read more

.before() in jQuery

It helps to insert content, specified by the parameter, before each element in the set of matched elements..

.before()

// To create content and insert it before several elements at once.

$( “.footer” ).before( “

Copyright….

” );

Read more

.bind() in jQuery

It helps to attach one or more event handlers for selected elements, and specifies a function to run when the event occurs.

.bind()

// To add a click event to the < p> element:.

$(“p”).bind(“click”,function(){
    alert(“The paragraph was clicked.”);
});

Read more

.blur() in jQuery

It helps to add an event occurs, when an element loses focus.

.blur()

// To add an alert, when the < input> field loses focus.

$(“input”).blur(function(){
    alert(“Handler for .blur() called.This input field has lost its focus.”);
});

Read more