I have a form that has a number of checkboxes, each checkbox has a unique value and also has the name = "data" , so its a variable when multiple checkboxes are selected.
At the moment I am using jquery $().val() but that seems to only get one value not all selected... any ideas??
<form method="POST" action ="">
<input type = "text" name ="name" id = "name">
<input type="checkbox" name="data" value="41" class="sel_emp" />
var somedata  =$('.sel_emp').val();