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
Post a Comment