jquery - Select All <tds> in Row of Same Button onClick -


good afternoon! have table rows being added ajax calls. these tables have checkbox button. want call ajax function on button click , pass value of first td in same row selected checkbox function. know how of it, can't figure out whether there's way jquery object of row in selected checkbox resides? additionally, why can't use "this" this?

$("input:checked").each(function(){         var parentrow = $(this).parent(); 

thanks!

use .closest()

$("input:checked").each(function(){         var parentrow = $(this).closest('tr'); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -