I have a
When I\'m using: alert($(\"#uploadPicture\").val());
alert($(\"#uploadPicture\").val());
It ale
It's old question but just in case someone bump on this tread...
var input = document.getElementById("your_input"); var file = input.value.split("\\"); var fileName = file[file.length-1];
No need for regex, jQuery....