How can I submit unchecked html checkboxes without Stripes tags?
How can I submit unchecked html checkboxes without Stripes tags?
HTML
<input type="checkbox" name="attribute1" class="attribute" value="ONE">
<input type="checkbox" name="attribute2" class="attribute" value="TWO">
<input type="checkbox" name="attribute3" class="attribute" value="THREE">
<input type="checkbox" name="attribute4" class="attribute" value="FOUR">
JavaScript
alert("1");
2. $('.attribute').click(function() {
3. alert($(this).val() + ' ' + (this.checked ? 'checked' : 'unchecked'));
4. });