javascript - jQuery Select tables that match criteria -
i have table , within table, sub tables each entry. each entry $item. ui in question search facility can used send list of 'selected' items via ajax mail function. each item being table check box selected.
however, when click check-box , select send, gets html 1 table, not selected.
jquery('#search-query-send').click(function(){ jquery('.apartment-entry:has(:checked)').each(function(){ var content = jquery(this).html() console.log(content); }); });
check out fiddle
i able console.log() html each table have selected.
you got selector correct.
jquery('#search-query-send').click(function() { jquery('.selectthis input:checked').each(function() { var content = jquery(this).parents('table').html(); console.log(content); }); });
Comments
Post a Comment