JQuery Show Hide Div Example Tutorial

<script type=”text/javascript” language=”javascript”>
<!–

$(document).ready(function(){

$(‘#btnAddNew’).click(function(){
var isVisible = $(‘#divNew’).is(‘:visible’);
if (isVisible == false){
$(“#divNew”).animate({ height: ‘show’, opacity: ‘show’ }, ‘fast’);
} else{
$(“#divNew”).animate({ height: ‘hide’, opacity: ‘hide’ }, ‘fast’);
}
return false;
});
});

–>
</script>

Author: Travis Gneiting

Passionate Professional .NET Developer