Here is what I have come up with but can't seem to get working.
THE HTML
<button id="toggleButton" type="button">Toggle</button> <div class="div1">hello</div>
THE CSS
button#toggleButton {
height: 25px;
width: 100px;
font-weight: bold;
top: 220px;
left: 60px;
position: absolute;
}
div.div1 {
visibility: hidden;
}
THE JQUERY
$(document).ready( function {
$('#toggleButton').click( function() {
$('.div1').toggle();
});
});
What am I doing wrong? Thank you.

New Topic/Question
Reply


MultiQuote






|