and next time, when I’m not around to have a look at? you need to learn to get better and that requires effort.
RE: Javascript GetElementByID
Collapse
X
-
Yes thats right!! I was running out of time so was in a hurry to get an answer.
So we need to replace "this" with a select item reference.
Please advise.document.getEle mentById("hidte xt").value = document.getEle mentById("selec t").options[select.selected Index].text;
or
document.getEle mentById("hidte xt").value = document.getEle mentById("selec t").options[document.getEle mentById("selec t").selectedInd ex].text;Comment
-
Thats awesome you made me think and do it by my own. I really very thank ful to you. i always look forward to work with you in future.
Thanks a lot and the code is working as intended!!
ChandhsekeComment
Comment