I try to validate my xhtml and i have a little problem with this:
<script type="text/javascript">
var faq=new switchicon("ico ngroup1", "div") //Limit scanning of switch contents to just "div" elements
faq.setHeader(' <img src="minus.jpg" alt="Content Management System" />', '<img src="plus.jpg" alt="Content Management System" />') //set icon HTML
faq.collapsePre vious(true) //Allow only 1 content open at any time
faq.setPersist( false) //No persistence enabled
faq.defaultExpa nded(0) //Set 1st content to be expanded by default
faq.init()
</script>
while i validate i am getting the following errors
document type does not allow element "img" here
i am also used
<![CDATA[ ---- ]]>
If i use this my script not working kindly help me
<script type="text/javascript">
var faq=new switchicon("ico ngroup1", "div") //Limit scanning of switch contents to just "div" elements
faq.setHeader(' <img src="minus.jpg" alt="Content Management System" />', '<img src="plus.jpg" alt="Content Management System" />') //set icon HTML
faq.collapsePre vious(true) //Allow only 1 content open at any time
faq.setPersist( false) //No persistence enabled
faq.defaultExpa nded(0) //Set 1st content to be expanded by default
faq.init()
</script>
while i validate i am getting the following errors
document type does not allow element "img" here
i am also used
<![CDATA[ ---- ]]>
If i use this my script not working kindly help me
Comment