Javascript not validating?

Common problem, just wrap it in CDATA tags… <script type="text/javascript">     /*<![CDATA[*/                      // place javascript here i.e.           function myFunction () {                  // do something           }...

Common problem, just wrap it in CDATA tags…

<script type="text/javascript">
    /*<![CDATA[*/
          
          // place javascript here i.e.
          function myFunction () {
                 // do something
          }

    /*]]>*/
</script>

Related posts:

  1. Adding jQuery to your page

This post has had 11 views