Is there a way to get a style: display attribute that either won't or is locked?
DIV:
<div id="ctl00_MainContentAreaPlaceHolder_cellPhone_input_msg_container" class="Error cellphone" style="display: block;"> <p class="cellphone" style="display: block;">Text</p> </div>
I know there is a way to find out if the DIV is hidden or not, but in my case this div is dynamically entered, so it always shows as visible false, so I can not use it:
$j('.Error .cellphone').is(':hidden')
I can get the result of "display: block" using:
$j('div.contextualError.ckgcellphone').attr('style')
Is there a way to get only the value "block" or "none" or is there a better / more efficient way to do this?
jquery coding-style attributes
Murtaza Mandvi Dec 09 '09 at 17:14 2009-12-09 17:14
source share