Title: Javascript in Post not working
Last modified: August 19, 2016

---

# Javascript in Post not working

 *  [Mike Corso](https://wordpress.org/support/users/cnotes/)
 * (@cnotes)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-post-not-working/)
 * I’m inserting javascript code for an email capture form (aweber) and it’s not
   showing. The html code shows the form fine. Why can’t I get javascript to work?
 * Thanks,
 * Mike Corso
    _[sig moderated as per the [Forum Rules](http://wordpress.org/support/topic/68664)]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/javascript-in-post-not-working/#post-1404459)
 * In my experience, for JS to work in the post/page editor, you need to delete 
   all the white space so no paragraph breaks are interserted by the editor.
 *  [mocove](https://wordpress.org/support/users/mocove/)
 * (@mocove)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/javascript-in-post-not-working/#post-1405020)
 * [@songdogtech](https://wordpress.org/support/users/songdogtech/) THANK YOU THANK
   YOU THANK YOU!!!
 * You have no idea how long I’ve tried to figure out why my simple script wouldn’t
   run. I checked the codex and tried that too. Nothing helped.
 * And just as you’ve described. When I looked closer into the source of my preview,
   I could see quite a few paragraph HTML tags in my javascript.
 * I cleaned up my white spaces and now there’s no problem.
 * THX DUDE!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript in Post not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [mocove](https://wordpress.org/support/users/mocove/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/javascript-in-post-not-working/#post-1405020)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
