Unbind Events with JQuery: Does it work with events setup in HTML?
        Posted  
        
            by Abs
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Abs
        
        
        
        Published on 2010-05-20T21:27:22Z
        Indexed on 
            2010/05/20
            21:30 UTC
        
        
        Read the original article
        Hit count: 236
        
JavaScript
|jQuery
Hello all,
I have a few onclick and on mouseover events in my html generated by PHP, something like this:
<div onmouseover="fave('heart_<?php echo $row['id']; ?>';" class="heart"><a href=""></a></div>
I wish to make use of unbind on the mouseover but it hasn't worked when I tried this:
$('#'+ id).unbind('mouseover'); 
So I am guessing unbind will only work with events created by JQuery? Is there something else I can try?
Btw, I can't move my events to a separate js file as each id is unique and.
Thanks all
© Stack Overflow or respective owner