I want to implement something like this If the 'Other' checkbox is selected, the text adjacent to it become editable OR a new checkbox is added where the text of the checkbox is editable depending on user choice. Is it implementable in ASP.NET?
What I have tried
I have added checkbox on the fly using jQuery but those are not accessible in ASp.NET code and hence I can't use it. I have also looked on onselectedindex event but could not find a way where a checkbox can be added to CheckBoxList 'with editable text'.
Your favour subject?<br><br>
<input type=checkbox > <label>Physics</label>
<input type=checkbox > <label>chemistry</label>
<input type=checkbox > <label>Math</label>
<input type=checkbox > <label>Other</label> _______________________
I want something very close to this jsfiddle, the problem is jQuery stuff is not accessible on server side. I think I should be able to just Ajax to send the newly created checkbox along with old checkbox to database where they will be saved, but that will make my logic complicated as I have other controls on the page as well.
Aucun commentaire:
Enregistrer un commentaire