I want to click a button (or in my example below, a link) and toggle between 2 blocks of content to essentially go from displaying content to editing content.
I have the following snipits of code:
<style type="text/css">
div.show {display:block;}
input.hide {display:none;}
</style>
<a href="#">edit</a> <!--not sure what my jquery should look like to do toggling-->
<div class="show" id="d-01-on">Some content</div>
<input class="hide" id="d-01-off" name="d-01" value="Some content" />
Thanks for helping.
[see How to Streamline and Compress Repetitive jQuery Code for expansion to this techique]