using jquery autocomplete in wordpress plugin
Auto complete is most likely not working on the extra fields because they are added with javascript dynamically, and when you make your javascript .autocomplete() call, it runs on page load. Your dynamically created fields do not exist yet to have autocomplete hooked with them. Try this. jQuery(document).on(“keydown”, “.post_email_repeatable”, function(){ jQuery(this).autocomplete({ source: “get_posts.php”, minLength: 1 … Read more