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> 

see how pass html element argument javascript function?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -