K
KelvinWongYW
i have a select box and the option is like below:
<option value='1111' txn='PYM' accType='C'>111232</option>
while i would like to get the accType in javascript, i use:
document.mainform.dacc.options[1].accType
but i failed to get value and it alert undefine.
however, getting the value is successful:
document.mainform.dacc.options[1].value
does anyone know how can i get acctype?
i have try quite a lot method
thanks
<option value='1111' txn='PYM' accType='C'>111232</option>
while i would like to get the accType in javascript, i use:
document.mainform.dacc.options[1].accType
but i failed to get value and it alert undefine.
however, getting the value is successful:
document.mainform.dacc.options[1].value
does anyone know how can i get acctype?
i have try quite a lot method
thanks