How can I get the value of checkboxes which are selected using jquery? My html code is as follows:
Try this, jQuery how to get multiple checkbox's value
For Demo or more Example
$(document).ready(function() {
$(".btn_click").click(function(){
var test = new Array();
$("input[name='programming']:checked").each(function() {
test.push($(this).val());
});
alert("My favourite programming languages are: " + test);
});
});
jQuery Get Values of Selected Checboxes