Title: Javascript inside a page?
Last modified: August 20, 2016

---

# Javascript inside a page?

 *  [joepeat](https://wordpress.org/support/users/joepeat/)
 * (@joepeat)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/javascript-inside-a-page/)
 * I’m trying to implement a drop-down HTML list in a simple page so that when an
   item is selected a JS script is executed. Here is the HTML of the page:
 *     ```
       <script type="text/javascript">// <![CDATA[
           setup();
       // ]]></script>
   
       <select style="cursor: pointer; background-color: #eee;" onchange="lookupState();"> <option value="00">Approvals by State</option> </select>
       ```
   
 *  
 * The functions setup() and lookupState() are defined in the header.php template
   for my theme as recommended by [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)

The topic ‘Javascript inside a page?’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [joepeat](https://wordpress.org/support/users/joepeat/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/javascript-inside-a-page/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
