Skip to main content

Bug Tracker

Side navigation

#11779 closed bug (invalid)

Opened May 17, 2012 03:13AM UTC

Closed May 17, 2012 03:15AM UTC

toggle() interferes with text of $(this).

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

$('<div>', {

id : 'specialButton',

text : 'Hide!',

click : function() {


if($('#headingTypes').is(':visible')) {


} else {





If we use the above code, the output is as expected: the sections with id headingTypes toggle and the corresponding text is shown (either Hide! or Show!); however the moment we introduce the 'slow' argument to the toggle function, the text doesn't change, i.e. it remains Hide! throughout.

Attachments (0)
Change History (1)

Changed May 17, 2012 03:15AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Please ask for help on a forum or StackOverflow.