• Code in functions.php

    <script type="text/javascript">
    (function($){
            jQuery(document).ready(function(){
    	        $(".create-new-menu-submit").on("click",function(){
    
    		        $("#customize-control-footer_menu_text input").val("Menu Name");
    
    	        });
            });
    })(jQuery);
    </script>

    create-new-menu-submit is a class of a button, clicking on which should change the value of a control ‘footer_menu_text’. What is wrong with my jquery? I am not aware of codes. Just copy and paste them to try it out. Please help me out with this. Thanks.

The topic ‘theme customization: change control value on button click’ is closed to new replies.