0

Hi guys, i want to populate a drop down list with ajax, and so when i select the first option
thesecond one select must be populated in table like if shoose
<select><option>value one</option>
<option>value two</option></select>

was supoose be populated the second value in another select, but i want be populated in table!
Is something like populate countrys and states, when we shoose country, another selects come with values depends on 1st select!
But i want those values come to table

Edited by hell hansen: more description

3
Contributors
3
Replies
22
Views
2 Years
Discussion Span
Last Post by hell hansen
0

This is JavaScript question
You have to tie events to selection change then send Ajax request to get list of States fo example, for that country!

0

Hi Diafol,
Thanks but i solved using something like this!

<?php
while ($rowGroup = mysql_fetch_array($resGroup)) {
 ?><a href="Types.php?id=<?php echo $rowGroup['id'] ?>" value="<?php echo $rowGroup['id'] ?>"><?php echo $rowGroup['group_name'] ?></a>

IS working properly, so now my problem is, when i choose one of group, the page is reloading and i don't want page to reload.
So i'll check the link, and then i let u know!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.