{"id":7077461,"date":"2016-02-17T23:31:47","date_gmt":"2016-02-17T23:31:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/inserting-javascript-modified-dropdown-menu\/"},"modified":"2016-08-31T13:35:18","modified_gmt":"2016-08-31T13:35:18","slug":"inserting-javascript-modified-dropdown-menu","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/inserting-javascript-modified-dropdown-menu\/","title":{"rendered":"Inserting Javascript modified dropdown menu"},"content":{"rendered":"<p>I&#8217;ve been looking through the forums here and at other resources online trying to insert a custom dropdown menu.<\/p>\n<p>I have two dropdown menus. BOX A contains different categories. Depending on which category you choose, BOX B is then populated with different options.<\/p>\n<p>I have everything running on JSFiddle (link below) but I can&#8217;t get it to function on my site at all. I have uploaded the javascript as an external file to the \/js\/ folder in my directory, and tried enqueueing it using the wp_enqueue_scripts function in my theme&#8217;s functions.php file, but to no avail.<br \/>\nI&#8217;ve even tried just blindly adding it to the page (in the text area of the page editor) out of desperation. Please help!<\/p>\n<p>https:\/\/jsfiddle.net\/flyingscot1989\/3t3p9tvx\/<\/p>\n<p>(ps &#8211; I generally keep my site locked down to registered users only, because it is part of my company&#8217;s intranet)<\/p>\n","protected":false},"template":"","class_list":["post-7077461","topic","type-topic","status-publish","hentry","topic-tag-dropdown","topic-tag-enqueue","topic-tag-java","topic-tag-javascript","topic-tag-script","topic-tag-wp_enqueue_scripts"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7077461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7077461\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7077461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}