[wp-trac] Re: [WordPress Trac] #9881: Can't toggle the visibilty
using jQuery anymore
WordPress Trac
wp-trac at lists.automattic.com
Tue May 19 22:07:56 GMT 2009
#9881: Can't toggle the visibilty using jQuery anymore
--------------------------+-------------------------------------------------
Reporter: mcosx | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: JavaScript | Version: 2.8
Severity: normal | Keywords: jQuery, WordPress plugin
--------------------------+-------------------------------------------------
Comment(by mcosx):
Replying to [comment:2 azaozz]:
> Think there's an error in your selector,
`jQuery("input[name=owad_daily_post]")` should be
`jQuery("input[name=\'owad_daily_post\']")`. Some of this changed in
jQuery 1.3.
The selector works. If I put "alert();" in the function body the alert
window appears. But it appears twice! Using show() instead of toggle()
doesn't change anything. I'll check the jQuery 1.3 API for that.
jQuery("input[name=owad_daily_post]").change(function () {
jQuery("#owad_post_settings").toggle("slow");
// alert('This message appears so the selector is fine - arg karg');
});
});
The other problem is solved. The submit name changed from save-widgets to
savewidget.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9881#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list