<script type="text/javascript">
$(function(){
for(var i=0;i<7; i++){
var guy_html = '<div class="aname"><input type="text" class="chatter_input autofriend" name="guy'+String(i) + '" /></div>';
$("div#guy_boxes").append(guy_html);
}
});
</script>
<div id="guy_boxes"></div>
I just want 7 input boxes created and put into the div.
Uncaught Syntax error, unrecognized expression: #
Syntax error, unrecognized expressionis an error that gets thrown by Sizzle (jQuery’s selection engine) when you have a poorly constructed selector. Getting it to trip over a#can happen if it comes at the end of your selector:However, your code looks okay. You may want to check other sections of javascript.