Click button and toggle

by cintia_rodrigues

HTML

<input type='button' id='hideshow' value='hide/show'>
<div id='content'>Hello World</div>

JavaScript

jQuery(document).ready(function(){
    jQuery('#hideshow').live('click', function(event) {        
         jQuery('#content').toggle('show');
    });
});