fake_path=document.getElementById('FileUpload1').value alert(fake_path.split("\\").pop())
$('input[type="file"]').change(function(e) { var fileName = e.target.files[0].name; $(e.target).parent('div').find('.form-file-text').html(fileName) // Inside find search element where the name should display (by Id Or Class) });
var fu1 = document.getElementById("FileUpload1"); alert("You selected " + fu1.value);