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);   }); }); 

http://jsfiddle.net/9d1pgjv8/7/


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -