On my site, I use the jquery cycle plugin for a slide show with a pager. This example:
http://malsup.com/jquery/cycle/pager.html
So, in the head of my document, I have a script similar to:
<script type="text/javascript">
$('#s4').before('<div id="nav">').cycle({
fx: 'turnDown',
speed: 'fast',
timeout: 3000,
pager: '#nav'
});
</script>
My document type is XHTML Strict.
When I try to check the page, I get the following errors: "the document type does not allow the div element here" and the "end tag for the div" is omitted, but OMITTAG NO was specified "because the div tag is not closed.
Is there a way to use jquery and make it validate?
emanu source
share