dropdown list
-
hi all, in my application im using HTML dropdown list ,in which i got list of mail id's and text name of that.so if select any of that id i want that value should be displayed in textbox in my form,,without postback it i need to do this with Javascript .please anyone tell me the way. with regards, susa
-
hi all, in my application im using HTML dropdown list ,in which i got list of mail id's and text name of that.so if select any of that id i want that value should be displayed in textbox in my form,,without postback it i need to do this with Javascript .please anyone tell me the way. with regards, susa
hi all, for the above problem,i didn't mentioned my code. im using this one.someone tell me what i have to do function fnOnchange(){ var ddobj=document.getElementById("<=%DDL2 %>"); var txtobj=document.getElementById("<=%TextBox1%>%"); txtobj.value=ddobj.Options[ddobj.SelectedIndex].value; return true; // txtobj.value=ddobj.SelectedIndex.value; } hi to all with regards, susa
-
hi all, for the above problem,i didn't mentioned my code. im using this one.someone tell me what i have to do function fnOnchange(){ var ddobj=document.getElementById("<=%DDL2 %>"); var txtobj=document.getElementById("<=%TextBox1%>%"); txtobj.value=ddobj.Options[ddobj.SelectedIndex].value; return true; // txtobj.value=ddobj.SelectedIndex.value; } hi to all with regards, susa
put a onchange attribut into your select box :
...
(remove _ in from the on_change) and then write a JS function:
function copyEmail () { var selectElement = document.getElementById ( 'yourSelect' ); var textElement = document.getElementById ( 'yourTextBoxID' ); textElement.value = selectElement.options[selectElement.selectedIndex].value; }
-------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us! -- modified at 8:53 Friday 28th April, 2006 -
hi all, for the above problem,i didn't mentioned my code. im using this one.someone tell me what i have to do function fnOnchange(){ var ddobj=document.getElementById("<=%DDL2 %>"); var txtobj=document.getElementById("<=%TextBox1%>%"); txtobj.value=ddobj.Options[ddobj.SelectedIndex].value; return true; // txtobj.value=ddobj.SelectedIndex.value; } hi to all with regards, susa
put a onchange attribut into your select box : ... and then write a JS function:
function copyEmail () { var selectElement = document.getElementById ( 'yourSelect' ); var textElement = document.getElementById ( 'yourTextBoxID' ); textElement.value = selectElement.options[selectElement.selectedIndex].value; }
-------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us! -
put a onchange attribut into your select box : ... and then write a JS function:
function copyEmail () { var selectElement = document.getElementById ( 'yourSelect' ); var textElement = document.getElementById ( 'yourTextBoxID' ); textElement.value = selectElement.options[selectElement.selectedIndex].value; }
-------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!hi CWIZO, you helped me a lot cause the code you given is working great.thank you very much. with regards, susa
-
hi CWIZO, you helped me a lot cause the code you given is working great.thank you very much. with regards, susa
Hey no problem ;) -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!