$(document).ready(function() {
    $("#realFileName").change(function(){
        if ($("#realFileName").val() !== '') {
        // for IE just get the file name and display that rather than the whole path
        $("#fakeField").val($(this).val().substring($(this).val().lastIndexOf("\\")+1));
        }
    });
});