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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -