I want to pass a variable of a text type input to jQueryui autocomplete, but I think I have the wrong syntax or maybe it can not be done.
The code I have is this:
$('#InPedido_DirEnvio').autocomplete({
source:'./Scripts/Phps/Autocompletar.php?pag=autocompletar_dir_clientes&cli='+$('input[name=InPedido_idcliente]').val(),
minLength:3,
dataType: "json",
the value of the input as you can see what I'm going through with $('input[name=InPedido_idcliente]').val()
but I do not know if it is possible to pass it in source, I have bad syntax or I have to do it in another way.
is this possible?