The Little Guy Posted July 15, 2009 Share Posted July 15, 2009 I am trying to do a multiline string, like the following: opt = "<h2 class=\"red\">Password</h2>\ <p>\ Your password is your secret code that allows you to log into your account,\ this will be accompanied by your email address.\ </p>\ <p>\ The password MUST be:<br />\ no less than 6 characters<br />\ no more than 10 characters.<br />\ must have at least 1 number and one alpha character\ </p>"; The problem I am getting is with this section: The password MUST be:<br />\ no less than 6 characters<br />\ no more than 10 characters.<br />\ must have at least 1 number and one alpha character\ </p>"; I am getting the following error, but I don't know what it means: Error: unterminated string literal Source File: http://www.dudeel.com/incl/js/index.js Line: 33, Column: 8 Source Code: The password MUST be:<br />\ FF's Error Console, has an arrow pointing between the "a" and the "s" in "password". What do I need to do to fix this?? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted July 17, 2009 Author Share Posted July 17, 2009 does anyone know what the problem is or could be? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted July 17, 2009 Author Share Posted July 17, 2009 GOT IT! it was because I had an extra space at the end of this line: The password MUST be:<br />\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.