JQUERY, getting two BINDs/Clicks to play nice together?
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-05-22T21:26:24Z
Indexed on
2010/05/22
21:30 UTC
Read the original article
Hit count: 195
I have the following line of code:
<li id="1" class=" ">
<a href="">Parking Lot</a>
<span id="1" class="list-edit">edit</span>
</li>
I then have two binds:
$("#lists li").click(function(){.......
$(".list-edit").click(function(){.........
The problem I'm having is I need the LI to contain the EDIT span because of CSS styling reasons, I have a big blue background. But this is preventing me from binding the EDIT btn. Is there a way to get these two to play nice?
Thxs
© Stack Overflow or respective owner