Title: Jquery Not Validating Properly
Last modified: August 19, 2016

---

# Jquery Not Validating Properly

 *  [sdjentertainment](https://wordpress.org/support/users/sdjentertainment/)
 * (@sdjentertainment)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/jquery-not-validating-properly/)
 * Hey Hey Fellow WordPressers….
 * I’m developing a site for a client and I’m trying to validate the code through
   the W3C validator that we all love. However it’s not valid.
 * Everything seems to be in order except the following code
 *     ```
       <script type="text/javascript">
       if (!('jQuery' in window))
       {
       document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></scr' + 'ipt>');
       }
       </script>
       ```
   
 * I was wondering if anybody has come across this problem in the past and has any
   helpful tips to get it valid. I’m using the Nivo Slider in my custom theme, which
   requires jQuery, but that’s it.
 * Any help, would be greatly appreciated.
 * Cheers,
    Simon

The topic ‘Jquery Not Validating Properly’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [valid](https://wordpress.org/support/topic-tag/valid/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sdjentertainment](https://wordpress.org/support/users/sdjentertainment/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/jquery-not-validating-properly/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
