Retrieve data from wordpress db via input and put those result in dropdown
In the below code when you press button with the id findschoolname ajax will run. you can change the click event with on change of text box. the below script run ajax. <div class=”col-xs-4″> <div class=”zipcode”>Zip Codes <input type=”text” class=”form-control postcode” name=”postalCode” /> <input type=”button” id=”findschoolname”> </div> <div id=”replacedropwdown”> </div> </div> <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(“#findschoolname”).click(function(){ … Read more