hello....
guys i am new to javascript. i am developing a javascript code on the listbox so that whenever the selected index is changed in the listbox the selected item comes in a textbox.
i have designed the code in javascript and it is executing fine but, on the aspx page when i call the function in the listbox nothing happens.
the javascript code is:
function replacetextoption() {
alert(txtrword.value);
var lstSugg = document.getElementById('ListBox1');
var txtrword = document.getElementById('ReplaceOption');
var temp = lstSugg.selectedIndex;
var temp2 = SuggList[i];
var suggs = temp2.split(";");
txtrword.value = suggs[temp];
}
the code for listbox on the aspx design page is:
<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" Font-Size="Large"
Height="1 ...
Go to the complete details ...