Web Analytics Made Easy -
StatCounter Invalid W3C jQuery slider code - CodingForum

Announcement

Collapse
No announcement yet.

Invalid W3C jQuery slider code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid W3C jQuery slider code

    I am using a jQuery slider on a website but the code comes up with invalid, is there any wat to get around this without using a div tag? Thanks for any help on this:

    Line 26, Column 27: document type does not allow element "div" here
    .before('<div id="buttons">')

    Code:
    <script type="text/javascript">
    $(document).ready(function() {
    $('#slider')
    .before('<div id="buttons">')
    .cycle({
    fx: 'fade',
    pager:  '#buttons'
    });
    });
    </script>

  • #2
    This is only W3C telling you that it doesn't know anything about HTML inside Javascript strings. You can just ignore this one!

    Comment

    Working...
    X