I'm using the hide css class to hide a button on page load.
The problem is that when i try to show the button i've previuosly hidden with jQuery the button is smaller.
(the same thing doesn't happen when i use jQuery to hide and then show the button)
Thanks for helping.
Edit: hide class is just this:
.hide { display: none; }
My button:
<a class="btn hide" id="buttonEditComment" href="javascript:void()"><i class="icon-comment"></i> Edit comment</a>
Javascript i use to show the button:
$("#buttonEditComment").toggle();
As dfsq said i just had to use removeClass("hide")
instead of toggle()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With