What does this JavaScript error mean?

Posted by Tommy on Stack Overflow See other posts from Stack Overflow or by Tommy
Published on 2010-04-08T21:57:27Z Indexed on 2010/04/08 22:03 UTC
Read the original article Hit count: 252

Using the “Venkman” JavaScript debugger for Mozilla and getting the following error:

 XML Parsing Error: not well-formed
    Location: x-jsd:source?location=http%3A%2F%2F192.168.1.150%2Fscript.js&instance=337
    Line Number 557, Column 50:<line><margin x='t'> - </margin><num>  554</num> ??      valid = false;</line>

Functions works but I don't understand the error.
Any help is appreciated. Thanks.

function ValidateCheckBoxes() 
{
   var valid;
   $(document).ready(function(){

      if($('input[@name=boxesA]:checked').size() == 0)
      {
         valid = false; 
      }
      else
      {
         valid = true;
      }
   });

   return valid;      
}

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors