Select the ids from an array of jquery elements -
with following jquery statement select array of elements:
selectedsupplierids = $('.supplierlistcheckbox:checked');
i need select ids these elements. can without creating array , pushing ids in loop?
you can use .map()
array of based on object selection...in case want .id
property each, this:
var arr = $('.supplierlistcheckbox:checked').map(function() { return this.id; }).get();
Comments
Post a Comment