Forums

DropDown fill dynamic textbox

kivlow 20 May, 2014
Hello,
I need a quick help about dropdown from DB and text box.
So i have dropdown from DB and i can select it and i want that when i select some option (company name) the textbox will automaticly fill themself.

I have in dropdown list of company and the textbox are the company adres (country, street, number,... etc.).

Thanx for Help.
GreyHead 20 May, 2014
Hi kivlow,

You'd probably need to do that with some custom Ajax code to make a call back to the database to get the address .If there are only a short list of companies then you could load them all in the page HTML and use JavaScript to display the information.

Bob
Zid 07 Jun, 2014
I am having this exact issue, only I have no idea how to go about writing the ajax. Could you point me towards a tutorial that might help?
This topic is locked and no more replies can be posted.