Vote count:
0
I'm actually developping an autocomplete for names in my form.
Here is my Jquery code :
$page->appendJs(<<<JS
$(document).ready(function()
{
$.ajax({
url: 'jsonClients.php',
type: 'POST',
dataType: 'json',
data: 'client' : $("#client").val(),
success: function(data){
$('#client').autocomplete(
{
source: data,
minLength: 1
});
}
});
});
JS );
My input is
<input type='text' id='client' name='client'>
My jsonClients.php is working, it needs a client parameters. I never made any jquery before, so i'm kinda lost.
Thanks for your help
asked 2 mins ago
JqueryUI autocomplete PHP JSON
Aucun commentaire:
Enregistrer un commentaire