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.
.live()is deprecated, use.on()obj[$(this).val()]?