I'm not sure if this is possible now completely, but can I change the page view after clicking the button without javascript and use css instead?
Currently, I am showing a page with information and as soon as the user clicks the edit button, instead of going to another page, the user will be able to make changes in the same view.
Thus, the page will be displayed to the user: jsFiddle of display
<div>living the dream</div> <hr/> <div> <p>Lorem ipsum dolor sit amet...</p> </div> <div>Edit button</div>
And this is how the page will look after the user clicks on the edit button: jsFiddle of view view
<div class="page" contenteditable>living the dream</div> <hr/> <div class="content" contenteditable> <p>Lorem ipsum dolor sit amet...</p> </div>
Thus, the classes will be hidden until you click the edit button, after which they will be added to the divs
Can I accomplish this with only css, and if not my alternatives instead of javascript?
javascript jquery html css
072et
source share