Response title
This is preview!
Hi,
I'm trying to iterate a simple array of string with
something like $(MyArray).each but it gives me the error Syntax
error, unrecognized expression. Who knows what I'm doing wrong
? See image below
See attached image
Well seems I had to use JSON.parse()
var SelectedHourTakes = JSON.parse($( '#SelectedHourTakes' ).val());
This solves the problem.
© 2013 jQuery Foundation
Sponsored by and others.