Duplicate-able Checkboxes Only Returns Value For Orginal Not Duplicates
Hi this was actually orginally in another question (HERE) that had two parts. The first part was solved by @epascarello - thanks again, now just this part remaining, and i don't se
Solution 1:
See this updated fiddle : http://jsfiddle.net/EEd7c/7/
Comment this line : $clonedDiv.find('input').val('');
Also set dep_counter = 0;
on submit
button click..
Solution 2:
Your cloned check boxes do not have any values assigned to it. Ensure that when its cloned the values are set in the net set of checkboxes
Solution 3:
It is simply because those checkboxes have the same name
attribute. When the submit button is pressed, it serializes the values of all the form controls (text boxes, radio boxes, check boxes, etc) and send them. The name property should be unique for all those controls.
In your code, all those checkboxes have the same name
property (relationship) which makes them indistinguishable. A fix to this problem is to give different names to those check boxes.
Post a Comment for "Duplicate-able Checkboxes Only Returns Value For Orginal Not Duplicates"