I've setup my plugin to be used on the frontend using a shortcode. I have managed to use an autocomplete form on a previous website I programmed from scratch (not WP based) but I don't understand how to make it work on WP 4.0.
I have this form to allow my clients to add their own customers:
<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 avoid different users entering the same person twice, I need an autocomplete dropdown to get results from a MySQL database (custom table) to show the user the
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?