WordPress.org

Ready to get started?Download WordPress

Forums

Ajax - jQuery - toggle() doesn't work (1 post)

  1. mcosx
    Member
    Posted 5 years ago #

    I have trouble with One Word A Day.

    Here is the sample code which also works (replace example.com by your blog address):

    <script type='text/javascript' src='http://example.com/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver='></script>
    
    <script type="text/javascript">
    
    	jQuery(document).ready(function(){
    		jQuery("input[name=owad_daily_post]").change(function () {
    			jQuery("#owad_post_settings").toggle('slow');
    			});
    		});
    
    </script>
    
    <form method="get">
    <input type="radio" name="owad_daily_post" value="1"/> yes <br />
    <input type="radio" name="owad_daily_post" value="0"/> no
    </form>
    
    <div id="owad_post_settings" style="display:none;">Test</div>

    But toggle doesn't work in the admin panel. I don't know how to fix it. Can anyone help me?

Topic Closed

This topic has been closed to new replies.

About this Topic