Hi
I have to do something like this :
I have 1 combolist - atributes of devices
and copy value and text to second select (multiple list size 10)
like this:
------------------------------------------------
function sel2sel(home,target) {
if(home.value != '' ) {
var targetOpt= new Option();
targetOpt.text = home.options[home.selectedIndex].text;
targetOpt.value= home.options[home.selectedIndex].value;
target.options[target.options.length] = targetOpt;
}
alert(''+targetOpt.text);
}
<select name="featureList" onChange="sel2sel(featureList,selList);">
<option>feature 1</option>
<option>feature 2</option>
<option>feature 3</option>
</select>
<select name="selList" size="10" multiple>
</select>
--------------------------------------------
Everything is copying to second SElect but just on the screen.
When I submit form nothing is passed throgh $_POST
What's wrong?
Could you help me
Jaro