I’ve setup my plugin to be used on frontend using Shortcode.
I have managed to use an autocomplete form on previous website I programmed from scratch (not WP based) but I don’t understand how to make it work on WP 4.0.

Basically, I have this form:

<form method="post">
<div class="pure-g">
        <div class="pure-u-1 pure-u-md-1-3">
            <label>Name</label>
            <input name="name" id="name" type="text" placeholder="Name" required>
        </div><input type="submit"></form>

to allow my clients to add their own customers.

Now, to avoid different users to enter the same person twice, I need an autocomplete dropdown to get results from a MySQL database (custom table) to show the user the %LIKE% result.

What I don’t understand is:
- to call the Jquery, do I have to call it from the main plugin file or on each file I setup?
- then, how do I use it?

Every help is much appreciated.

Thanks

Read more here: Implement Autocomplete for a custom field on WordPress Plugin Frontend


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: