Dada44
asked on
Hide a div after hitting close button within this div
Hi all,
Can it be done?
Can I show a div on page load with a close this div button in it, then hit the close button and close the whole div, close button included?
Been trying and cannot achieve it :(
Thanks a lot
Can it be done?
Can I show a div on page load with a close this div button in it, then hit the close button and close the whole div, close button included?
Been trying and cannot achieve it :(
Thanks a lot
ASKER
franfred, thanks for answering but the closing button has to be inside of the div "mydiv"
The button has to go with the div ..
The button has to go with the div ..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!!
<script language="javascript">
function closemydiv(){
document.getElementById('m
}
</script>
...
<form>
<input type="button" onclick="closemydiv()">
</form>