What is the difference between
$("#myid").attr("style", "visibility: hidden")
and
$("#myid").css("visibility", "hidden")
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Doing this:
Will leave only this style attribute, while doing this:
Will add (or set) this style attribute.
Here’s an example, the first will always result in this:
The second just adds
visibilityso your style may now be: