i am doing a webpage project. it have student role and teacher role. when teacher signed in their account, they are able to search students by name.
but many students can have the same name, i don't know how to code this part where when teacher typed student's name in the search bar, the result should filter all students' name. for example, teacher is searching for "john tan" then all the similar names should be displayed in the dropdownlist and filter all the results from the database."john tan mingjie" or "john lim"
thank you whoever is helping me with this!!!
You can use Select2 - a free jQuery plugin.
https://select2.github.io/examples.html
Easy as that :)