Henry
Henry

Reputation: 35

Jquery not working with IE

I did this jquery to basically check on a php page and turn whatever the result is. It is working fine in other browsers but unfortunately I am having issues with IE. The bad news for this is that most of the users will be using IE.

$(document).ready(function() {
    $('#value').change(function() {
        $.ajax({
            type:'POST',
            url:'../validation.php',
            data: {
                validate_year:$('#Year').val(),
                validate_value:$('#value').val(),
                validate_domain:$('#Domain').val(),
            },
            success: function (data) {
                $('#status').empty().append(data).addClass('red_validate');
            }
        })
    });
});

how can I making this work on IE. Thanks

Upvotes: 0

Views: 71

Answers (1)

FastTrack
FastTrack

Reputation: 8980

Try removing the trailing comma from the last item in your data object:

data: {
    validate_year:$('#Year').val(),
    validate_value:$('#value').val(),
    validate_domain:$('#Domain').val() // <--- Should NOT have a comma
},

Upvotes: 3

Related Questions