I am using json to receive data. Now I have tested with all browsers, working fine except IE. In ie I am getting undefined null object error. can any one help me with this please? here is my code
- function exchangeIdentifier() {
- $.getJSON('exchangedetail.php', {countryName:$('#countryName').val()}, function(data) {
- var select = $('#exchange');
- var options = select.attr('options');
- $('option', select).remove();
- $.each(data, function(index, array) {
- options[options.length] = new Option(array['exchange']);
- });
- });
- }
- function equityIdentifer() {
- $.getJSON('equitydetail.php', {exchange:$('#exchange ').val()}, function(data) {
- var select = $('#typeo');
- var options = select.attr('options');
- $('option', select).remove();
- $.each(data, function(index, array) {
- options[options.length] = new Option(array['eqtype']);
- });
- });
- }