Reputation: 1579
I'm struggling getting rid of the error on line 2.
What am I doing wrong?
Upvotes: 0
Views: 3749
Reputation: 165971
You need to escape the first new line character (after the opening double quote):
$("#insert-rated-category"+voteit).html(" \
<select id='' name=''> \
<option value=''></option> \
</select> \
");
Edit
You'll have to escape the new line character in blank lines too. Thanks @cHao.
Upvotes: 7