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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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