Home › Forums › JavaScript › PHP, MySQL Query via AJAX › Re: PHP, MySQL Query via AJAX
June 16, 2011 at 1:22 am
#72866
kalps1982
Member
Yes, this is possible.
You can use jQuery Ajax for doing this so. Using jQuery it would be easier for you to implement Ajax functionalities.
At server side you have to create a PHP file which accepts POST request. On receiving request from Ajax this file would do necessary process and return you dropdown list. (Ajax request can receive response in form of XML, JSON or normal HTML as text form).
When jQuery Ajax receive response you can use jQuery functionality to dynamically add dropdown in your page by using .append() function.