Edit a text value with jQuery

Had an idea to allow me to quickly edit a text value without any complicated dialogs or modals. Managed to do it all in jQuery. I placed the input and text span in the same div and then hid the input. When I click on the text it hides the text, reveals the input and then I reverse the process when you blur the input.

Check it out on JS Bin

Advertisements
Tagged