I have several areas where I use AJAX to send text fields.
var name = $("input#name").val(); $.ajax({ type: "POST", url: "bin/process.php", data: "&name=" + name, success: function() {
However, I cannot figure out how to do this if the input type is a file? Performance
var name = $("input#file").val(); doesn't seem to work.
tpow
source share