I have five checkboxes and one of them is already check:
<input name="name1" id="id_1" type="checkbox" checked="checked">
<input name="name2" id="id_2" type="checkbox" >
<input name="name3" id="id_3" type="checkbox" >
<input name="name4" id="id_4" type="checkbox" >
<input name="name5" id="id_5" type="checkbox" >
and I also have a Save button:
<input type="submit" value="Save">
So now I want to check 2 more checkboxes. When I click Save button(not when I click the new checkboxes) to save to database, is there anyway to select just 2 recently checked ones using jquery to apply eventHandler for them?
Aucun commentaire:
Enregistrer un commentaire