Why does this code attempt to hide the div but then show it again? using firefox
$(document).ready(function(){
$("#tool1").click(function(){
if($('#status').height() > 100){
$('#status').css('height','50px').show();
}
});
});
Thanks for the help so far they all worked. However this is the exact code I have
DEMO
DEMO
According to above comment
DEMO
According to below comment
#statusButton inside demo
According to your demo
Change you code like:
DEMO
Note
You can also remove
hreffrom#tool1Currently
#tool1is link tag, if you want to use a button, than just removee.preventDefault()from above code.