I have got two input fields which i would like to make editable with a button click.
The data of these two fields is to be written to database in two separate columns which can be achieved by ajax.
But i would like to know about the first part. Tried to google a lot but didnt found a viable solution 🙁
jsBin demo
html:
This allows you to toggle your states:
You can use
.prop()since jQuery 1.6.