JQuery style display value

css, jquery

Solution

Just call css with one argument

  $('#idDetails').css('display');

If I understand your question. Otherwise, you want cletus' answer.

Problem

How can I check the display value of an element ``` <tr id="pDetails" style="display:none"> ``` `$("tr[id='pDetails']").attr("style")` gives me `'display:none'` I want to write a jquery script that will return me only the value of display which is 'none' Is that possible?

Original source