internet explorer 6 - Upgrading website from IE6 to IE10: Passing combobox as parameter to JavaScript function -
i upgrading website ie6 ie10.
i have function moves user choices 1 combobox another
//moves options 1 selection box (combo box) function moveelements(fromcombo,tocombo) { ... code ... }
i defined 2 comboboxes
<select name="choice1_select" class="form150" size="7" multiple> ... </select> <select name="choice2_select" class="form150" size="7" multiple> ... </select>
the code activate move 1 combobox is:
moveelements(choice1_select,choice2_select);
this code works on ie6 not on ie10. returns error
script5009: 'choice1_select' undefined
how solve this?
ie10 relating choice1_select
variable
replace code activate move with
moveelements(document.getelementbyid("choice1_select"), document.getelementbyid("choice2_select"))
change name
id
in combobox definition
<select id="choice1_select" class="form150" size="7" multiple> ... </select> <select id="choice2_select" class="form150" size="7" multiple> ... </select>
Comments
Post a Comment