0

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
        });
});

Edited by luma64

3
Contributors
2
Replies
15
Views
4 Years
Discussion Span
Last Post by pixelsoul
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.