Question and answer is powered by AnsPress.io
I have added some checkboxes, while I will submit the form using jQuery AJAX, I want to store those value which will be checked. So I need to know which checkboxes are selected in jquery. How can I do it?
Apply it:
$('body').find('input[type="checkbox"]').each(function(){ if ($(this).is(':checked')) { var obj = $(this); var val = obj.value(); console.log(val); } });