1

Having a strange issue with IE.

I have code like this:

$(window).load(function(){

    $('.deleteButton').click(function(){
            var uid = $(this).attr('rel');
        deleteItem(uid);
    });

});

This works fine in Firefox and Chrome, my function for deleteItem call a $.post and on completion refreshes the page so that it can update the content.

$.post("../jphp/deleteOption.php", {id: uid}, function() {window.location.reload(); })

However after the page has been reloaded the delete buttons are no longer clickable.

Any ideas?

4

1 回答 1

0

Try doing:

window.location.reload(true); //dont load from cache
于 2012-09-03T05:07:11.130 回答