How to use jquery to get the value of visibility:hidden?

  node.js, question

<span id=”test” style=”visibility:hidden; position:absolute; bottom:0; left:0; font-weight:bold; font-size:12px; font-family:’arial’;” In < /span >

The above code, with $(“#test”).is(‘:hidden’), is false, and with attr method, it is undefined, which is really a headache and took several hours. …

var ele = $(“#test”).css(“visibility”) === “hidden” ? $(“#test”) : undefined; Try, it is best to cache $(“#test “) first