A.Gharibyan A.Gharibyan - 1 month ago 10
jQuery Question

Jquery hide() doesn't work on button

I am trying to hide 1 button with jquery it look like this

$('#add-event').hide()


but button dont hide. I have changed jquery virsion to last one but taht dosnt work? help someone plz.

My button css styles look like this

#add-event {
border-radius: 50%;
width: 80px;
height: 80px;
line-height: 4.2em;
border: 6px solid #fff;
box-shadow: 0 0 5px #e9e9e9;
margin-left: 120px;
display: inline-block!important;
}

Answer

Just change your css style like this

#add-event {
   border-radius: 50%;
   width: 80px;
   height: 80px;
   line-height: 4.2em;
   border: 6px solid #fff;
   box-shadow: 0 0 5px #e9e9e9;
   margin-left: 120px;
   display: inline-block!;

}

need remove !important rull.