How can I get the value of checkboxes which are selected using jquery? My html code is as follows:
$(document).ready(function(){ $(".chk").click(function(){ var d = $("input[name=test]"); if(d.is(":checked")){ // } }); });
`test1` `test2` `test3`