Skip to main content

Bug Tracker

Side navigation

#15221 closed bug (notabug)

Opened August 29, 2014 10:04PM UTC

Closed August 30, 2014 11:03PM UTC

:hidden can't set css display

Reported by: martin Owned by:
Priority: undecided Milestone: 2.next
Component: css Version: 2.1.1
Keywords: Cc:
Blocked by: Blocking:
Description

$(function () {

$(':hidden').css({ 'display': 'block' });

});

Shows function itself on a page


$(function () { $(':hidden').css({ 'display': 'block' });...


It can be used .show() method, but why not to use .css? :)

Attachments (0)
Change History (2)

Changed August 29, 2014 10:09PM UTC by martin comment:1

And here is a demo :)

http://jsfiddle.net/16nv3cgp/

Changed August 30, 2014 11:03PM UTC by markelog comment:2

resolution: → notabug
status: newclosed

That's because script tag itself is a hidden node, nothing wrong here.