javascript validation error -


here's code, says error when run through w3.validator.org.

for (var = 0; < checkbox.length; i++)

error message - character "<" first character of delimiter occurred data

how fix this?

if "using" xhtml need wrap code in cdata:

<script type="text/javascript"> //<![cdata[  // rest of javascript goes here  //]]> </script> 

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -