I am working on a form and would like to minipulate the selected list item in a combo box. I am taking values from a record in MySQL and filling in form fields. Can I access the combo box like in JavaScript where you can do it like the following:
document.myform.combo1.value="myvalue"
or do I have to code the whole combobox in php like the following (I would really like to avoid it): *HTML Tags May Be A Little Off - Example Only.
echo("<select name=/"emotion/">");
echo("<option><selected>happy</selected></option>");
echo("<option>sad</option>");
echo("<option>happy</option>");
Any advice?