javascript - Preventing jQuery click() conflicts -
i have table of locations. each location has individual url associated it. using 1 column activate / deactivate url can turn locations off , on. i'm using jquery's bind / click ajax request.
i want make clicking anywhere on table row take user individual url.
var url="http://mysite.com/"+jquery(event.target).siblings("td.url").text(); jquery(location).attr('href', url);
the problem it's intercepting other columns click. there way like:
if(event.target != jquery("td.active")){ //redirect }
if(!jquery(event.target).is('.active')) {
is want.
Comments
Post a Comment