Bug Tracker

Opened 5 years ago

Closed 5 years ago

#15221 closed bug (notabug)

: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? :)

Change History (2)

comment:1 Changed 5 years ago by martin

And here is a demo :)

http://jsfiddle.net/16nv3cgp/

comment:2 Changed 5 years ago by markelog

Resolution: notabug
Status: newclosed

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

Note: See TracTickets for help on using tickets.