That's because .css('display') or any other css property returns the computed style. As block is the default style for that element it will return block on spans it will return inline as that's the default display style.
/James On 10/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Thanks, this works, I notice that css("display") will return "block" > when there is no "style" defined > > On Oct 28, 7:13 pm, James Dempster <[EMAIL PROTECTED]> wrote: > > Try $('label').css('display'); this will return the value your looking > > for. > > > > On Oct 28, 7:39 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > Given following, is there a way to get the value of 'display'? is it > > > 'none' or something else? > > > thanks, > > > > > AC. > > > > > <label for="state" style="display:none;"> > > > > >