top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

what is bind() and unbind() in jquery?

0 votes
470 views

I know both are pre-defined functions in jquery.I need to know what is the use?Please give some examples for both functions.

posted Jul 1, 2014 by Parampreet Kaur

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
 
Best answer

jQuery bind() function is used to attach an event handler to elements, while the unbind() is used to detached an existing event handler from elements.
Examples

Simple html code for the demonstration.

<div id="BoxId">
    Mouseover Me, Click Me or Double Click Me
</div>
<span></span>

For More Information:
http://www.mkyong.com/jquery/jquery-bind-and-unbind-example/

answer Jul 1, 2014 by Vrije Mani Upadhyay
Thanks vrije mani.Clear explanation.Thanks you so much.
...