![]() |
Jquery problem
hi.
when i add this to my .js file: PHP Code:
|
You cannot just include line breaks inside a string literal. You'll have to escape them using the \ backslash character.
Code:
$("#localUpload").append(' <div class="file_input_div">\ |
Well that didn't help, any other ideas...
|
What is the error then?
|
You are using the backslash inside a javascript string to handle regular expression escaping, but it is already used for javascript character escaping. So you will have to replace every \ backslash inside the regular expression with a double backslash \\ which will escape the backslash to be used for the regex.
|
| All times are GMT +1. The time now is 11:42 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.