Pawan_Agarwal Posted July 1, 2013 Share Posted July 1, 2013 Hello, I am working on piece of code and now I am figuring out a way to complete it. I am merging ajax+PHP+ MySQL, what I am trying to do is fetch data using ajax on same page and data will be shared between 3 <select> tags In first <select> tag, I have listed All the "managers" working in company, when I click on any "manager" name, second <select> must show the "assistant manager" , after clicking on "assistant manager" <select>, it must show "team leaders" name in 3rd <select>, and after clicking on "team leader name" <select>, all the staff must display on the 4th <select>. I am able to fetch the records of manager and "assistant manager", but I am unable to proceed further. Can anyone help me ??? I have attached the sample view of the code that I am trying to complete, have a look and let me know the solution, you may also email it on [email protected] do have a look on attachment........ code.html Quote Link to comment https://forums.phpfreaks.com/topic/279762-php-with-ajax-and-mysql-fetching-records/ Share on other sites More sharing options...
MironovDV Posted July 16, 2013 Share Posted July 16, 2013 (edited) You need to know id of each of the select element. With each change seleсts to do Ajax request that will pull out all the child elements. Edited July 16, 2013 by MironovDV Quote Link to comment https://forums.phpfreaks.com/topic/279762-php-with-ajax-and-mysql-fetching-records/#findComment-1440871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.