I am using a jQuery slider for a website but the W3C comes up with invalid because:
document type does not allow element "div" here
.before('<div id="buttons">')
Any help with this would be appreciated thanks.
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"></div>') .cycle({ fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... pager: '#buttons' }); }); </script>
Comment