I am having three checkboxes in my page i want to get all selected checkboxes values how can i achieve this using normal for loop in jquery.
for ( var i = 0; i < $(":checkbox:checked").length; i++ ) {
alert($(":checkbox:checked")[i].attr('id'));
}
I am having three checkboxes in my page i want to get all selected checkboxes values how can i achieve this using normal for loop in jquery.
for ( var i = 0; i < $(":checkbox:checked").length; i++ ) {
alert($(":checkbox:checked")[i].attr('id'));
}