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,ta rget) {
if(home.value != '' ) {
var targetOpt= new Option();
targetOpt.text = home.options[home.selectedIn dex].text;
targetOpt.value = home.options[home.selectedIn dex].value;
target.options[target.options. length] = targetOpt;
}
alert(''+target Opt.text);
}
<select name="featureLi st" onChange="sel2s el(featureList, selList);">
<option>featu re 1</option>
<option>featu re 2</option>
<option>featu re 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