I'm developing an application in which, for reasons of aesthetics, I needed to recreate some elements in order to be able to customize each one, especially <select>
and <option>
correctly.
So I need to pass the form by picking the date manually. For this, I'm using:
$('#criarConta').click(function(){
$.ajax({
url: "empregador.php",
type: "POST",
data: {
nome: $('#nomeSign').val(),
email: $('#emailSign').val(),
senha: $('#passSign').val(),
local: $('#localInput').val(),
site: $('#siteInput').val(),
tipo: $('#tipoPerfil').data('selected'),
ramo: $('ramoInput').data('selected'),
profilepic: $('profilePicInput').val()
},
contentType: false,
cache: false,
processData:false,
success: function(data){
console.log(data);
}
});
});
I put this profilepic
there to see where I want to call the image. As far as I know, .val()
will only recover the file path, not itself.
How do I resolve my case?