i have a div that starts out hidden:
<div id='deskView' style="display: none;">
how can i make it visible using jquery on a button click ?
i have a div that starts out hidden:
<div id='deskView' style="display: none;">
how can i make it visible using jquery on a button click ?
$('#button_id').click(function() {
$('#deskView').show();
});
Anyway - this is a good place to look for further information: http://docs.jquery.com/Main_Page
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$('#myButton').click(function(){
$('#deskView').show();
});
});
</script>
<div id="deskView" style="display: none;">
desk view
</div>
<input type="button" value="Click Me" id="myButton" />
Go through the Tutorials -- it's worth it.
<input type="button" value="Click" id="Button1" onClick="$('#deskView').show()" />