I'm modifying a website that I don't coded but my boss ask me to do.
I see a javascript error on Firebug that says: missing ] after element list
In the end of the file processed with PHP, there is two lists with 771 elements. One is called list1 and the other listaid. First contains the names and 开发者_如何转开发the second the ids of the list.
You can see the code: http://pastebin.com/Ctji5Qx9
How I can evaluate where is the error on the list? I can't see it with this amount of elements and the highlight don't shows any error...
Thank you in advance!
Editor highlighting showed that the strings in list1 aren't properly escaped. You have "JUNTA DE COMPENSACIÓ "ADOBERIES-EST""
and "JUNTA DE COMPENSACION PROVISIONAL DEL PLAN PARCIAL DEL SECTOR G "CAN OLIVERES""
. So escape the "
s and it should work.
You can use jslint: jslint.com Just paste your JS code in it and it will check and return you a useful answere.
精彩评论