I need to store the ReCaptcha code in a JavaScript variable and then dynamically show the captcha (in a dynamically created DIV). The problem is the following code cannot be stored in a variable:
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k="></script><noscript><iframe src="http://www.google.com/recaptcha/api/noscript?k=" height="300" width="500" frameborder="0"></iframe><br/><textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea><input type="hidden" name="recaptcha_response_field" value="manual_challenge"/></noscript>
I get the error in Firebug: unterminated string literal
. How to make it work?