java script jquery interview question bind and unbind jquery function

Click here – https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. java script jquery interview question bind and unbind jquery function

Explain “bind()” and “unbind()” in jQuery ?

$(“#myElement”).bind (‘click’, function() {
alert($(this).text());
});
Add a click event listener to the element with an ID of myElement.

$(“#myElement”).unbind(‘click’);

Remove the click event from myElement or Tell the browser to no longer listen for events from the current element.

One Click Dream Job http://www.interviewdot.com/upload-resume/uploadresume.htm

Free Interview Books Download http://www.interviewdot.com/main-page-left-links-pages/getmycareer-download-resumes.htm

Other Top Job Portals
www.naukri.com
www.monsterindia.com
www.timesjobs.com
www.freshersworld.com

Post Author: hatefull