Get input type file value using jquery
$(document).ready(function(){ $('#fileInput').change(function(){ var fileName = $(this).val().split('\\').pop(); // Get only the file name alert("Selected file: " + fileName); }); }); $(document).ready(function(){ $('#fileInput').change(function(){ var file = $(this).prop('files')[0]; // Get the first…
0 Comments
April 1, 2025