Jquery expanding the hover area

Posted by Shishant on Stack Overflow See other posts from Stack Overflow or by Shishant
Published on 2010-03-28T14:34:59Z Indexed on 2010/03/28 14:43 UTC
Read the original article Hit count: 210

Filed under:
|

Hello,

This is my my result html

Output

And html of it is like this

<li id="33">
    <div class="todoRow">
        <span class="status_1">Test13</span>
        <img class="delete_todo" alt="Delete" src="trash.png">
    </div>
</li>

I am using toggleClass to change the class of span on hover. I want to make it hover-able till the width of delete icon so I can toggle the class

I dont want to use div to trigger the hover because in that case when trash icon is hovered it toggles class of span element too.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html