jquery - How to make html pages editable on button click? -
i working play 2.1.0 , using jquery design html pages. looking functionality when user first time signs in website, ui should in readonly mode. when user clicks on "edit" button fields across web pages become editable @ time. after edits done, user can save changes , web pages become readonly again.
i searched jquery plugins, plug-ins work in different way. make particular html element editable on jquery events. text box become editable if user click/doubleclick on particular textbox only. jeditable plugin http://www.appelsiini.net/projects/jeditable
is there plugin available per requirement? or there other way implement required functionality?
edit
i solved problem having separate file edit , view. maintain variable in session, , based on value render edit or view page.
<script type="text/javascript"> $(function() { $('#editbutton').click(function(){ $('.input').show(); $('.label').hide(); }); </script> <li class="label"> <label>example</label></li> <li class="input"> <input type="text" value="example" /></li>
Comments
Post a Comment