Hi all,
I have started using AJAX to populate drop downs from a mySQL database; however, I want the option of modifying the selected OPTION of the drop down using an array of radiobuttons elsewhere on the page. I have tried...
...but I doesn't work after the AJAX function populates the drop down (it does work if executed before).
Any suggestions gratefully appreciated.
I have started using AJAX to populate drop downs from a mySQL database; however, I want the option of modifying the selected OPTION of the drop down using an array of radiobuttons elsewhere on the page. I have tried...
Code:
function updateDrop(sel)
{
alert(document.getElementById('secondDrop').innerHTML);
document.getElementById('secondDrop').innerHTML='<option>'+sel.value+'</option>';
}
Any suggestions gratefully appreciated.
Comment