CODE
<script type="text/javascript" src="/path/to/your/jquery.js"></script>
<script>
$(document).ready(function() {
//trigger click event
$('#myLinkId').click(function() {
//this is eg. to show/hide your block
$('#blockId').toggle();
});
});
</script>
<body
[bad html removed] this can be anything(input,html tag), just assign the id to it -->
<input type="button" id="myLink" value="CLICK ME">
[bad html removed] this is your block to hide, assign the id -->
<div id="blockId" style="display:block; height:80px; width:80%;background:yellow;"> Hello Bro! Apa di atas? </div>
</body>
This post has been edited by puaka_astro: Mar 19 2009, 08:04 PM
Mar 19 2009, 08:03 PM
Quote
0.0154sec
0.71
6 queries
GZIP Disabled