I am new in ajax. I searched some code about autocomplete. But when I select data from list I dont know retrieve data. Page get_course_list.php fill list and send to user choiced value.
In php is code
Diagnoza: <input type="text" id="course" onblur="course()">
<?php
$dgkod=$_POST['course'];
echo "course: $dgkod" ;
?>
Function in same page is
$("#course").autocomplete("get_course_list.php", {
width: 260,
matchContains: true,
//mustMatch: true,
//minChars: 0,
//multiple: true,
//highlight: false,
//multipleSeparator: ",",
selectFirst: false
});
});