hi everyone,
I have a div and I want to show and hide on a link click. Not two different links to show and hide but only one. I have used toggle() but its not working for me..
Here is the code
<a id="showhidediv">show-hide</a>
<div id="maindiv">
<div id="innerleftdiv" style="width:49%;float:left">
</div>
<div id="innerrightdiv" style="width:49%;float:left">
</div>
<div>
<script text="text/javascript">
$().ready(function){
$("showhidediv").click(function(){
$("maindiv").hide()
});
</script>
Thanks