I have the following JS code:
var data = jQuery.parseJSON('{"name":"John"}');
$('#name').live("change", function() {
name = data[$(this).val()];
alert(name);
});
It works fine in FireFox, but in IE7 I get the follow JS error:
Object doesn't support this property or method.
Do you declareted the name?
var name = ob…
The IE needs to declarate js variables.