here is the reference link, http://talkerscode.com/webtricks/dynamic-select-option-menu-using-ajax-and-php.php which helped me to get dynamic select option, but it has to be modified to get selected option to display other column values from data base, here is what i got
function fetch_select(val)
{
$.ajax({
type: 'post',
url: 'fetch_data.php',
data: {
get_option:val
},
success: function (response) {
document.getElementById("new_select").innerHTML=response;
}
});
}
what i want to do is, add miltiple id's to fetch data from database, like..
function fetch_select(val)
{
$.ajax({
type: 'post',
url: 'fetch_data1.php',
data: {
get_option1:val
},
success: function (response) {
document.getElementById("new_select1").innerHTML=response;
}
});
}
and
function fetch_select(val)
{
$.ajax({
type: 'post',
url: 'fetch_data2.php',
data: {
get_option2:val
},
success: function (response) {
document.getElementById("new_select2").innerHTML=response;
}
});
}
please refer to the demo link : DEMO
Thanks for the Response .......