PHP Classes

AJAX Drop-down: Update the options of a select input using AJAX

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 14,052 All time: 73 This week: 86Down
Version License PHP version Categories
ajaxdropdown 1.0GNU General Publi...3Databases, AJAX


This package can be used to update the options of a drop-down select input when the selected value of another drop-down input changes.

It uses AJAX to retrieve the new set of drop-down options from a MySQL database on the server side.

Picture of Neeraj Thakur
Name: Neeraj Thakur <contact>
Classes: 5 packages by
Country: India India
Age: 45
All time rank: 103 in India India
Week rank: 298 Down19 in India India Down


Class : AjaxDropdown AjaxDropdown class populates the data fetched from database into a sub category dropdown on change event of category dropdown. The configuration settings can be changed as per need of application. It makes use of XML as transitional language between server side language and client end script. The component is multibrowser, cross database, multi server side language. For Installaton .. 1. Run db.sql file on your local or remote database.. 2. Change the configuration settings for host, database name, username and password inside getagents.php file. 3. Run index.php file using php compatible web server. About myself: I am a PHP programmer working as Sr. Developer in Classic Informatics. Please rate this class If you find it useful. Please feel free to contact me for queries related to this class. I would feel gratefull if i can sort out your issues related to PHP. Thanks in advance. Neeraj Thakur Sr.. Developer Emails:

  • screeshot.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file ajax.js Data AJAX Javascript File
Accessible without login Plain text file css.css Data Style used in component
Accessible without login Plain text file db.sql Data Database script
Plain text file getagents.php Class Class Source Code
Accessible without login Plain text file index.php Example Demonstration file
Accessible without login Plain text file Readme.txt Doc. Documentation
Accessible without login Image file snake_transparent.gif Icon Load Image

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:73
This week:86Down
User Ratings User Comments (5)
 All time
ok tq very good
14 years ago (cayrol)
very useful
15 years ago (x)
Excelent work!
16 years ago (Murilo Klock Ferreira)
Good Job.
16 years ago (Noman Farooqi)
Really Good.
16 years ago (mukeshgct)