On one of my blogs, I’m using the comments input text box for very short answers to survey questions. Many answers will be similar or identical, so it would be helpful to have an auto suggest in effect to avoid slight misspellings, etc. Does anyone know how to add an autocomplete (autosuggest) function to the input box, so that user’s see a drop down list of pre-existing PUBLISHED comments from the WP data base? The drop down autosuggest list would filter (drill-down to closest match) as the user types each letter. User can select the desired result and it will populate the text input field, or they can just enter their own unique text. I’ve seen examples of scripts, AJAX, JS, but it eludes a novice like myself how to implement into the WP code. Thanks so much for any help.
- The topic ‘How to add autocomplete (autosuggest) to text input field?’ is closed to new replies.