problem with ubind and hover
Hi all,
i have just updated my jquery version from 1.8.3.js to current.
the code below used to work on last version but not on current. Is it normal ? :s
- <!DOCTYPE html>
- <html>
- <head>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- </head>
-
- <body>
-
- <div id="dv1" style="float:left;width:50px;height:50px;background-color:blue;"></div>
- <div id="dv2" style="float:left;width:50px;height:50px;background-color:orange;"></div>
- <div id="dv3" style="float:left;background-color:grey;height:50px;width:50px">
- <a href="javascript:;" onclick="$('#dv1').hover(function(){$('#dv2').text('+')},function(){$('#dv2').text('-')});">+</a>
- <a href="javascript:;" onclick="$('#dv1').unbind('hover');">-</a>
- </div>
-
-
- </body>
- </html>
Thank you for your help :s