Search This Blog

Friday, June 26, 2009

Get Text Box/Dropdown Value By Javascript

function GetValue()
{

// var test = document.getElementById('<%=txtMyTextBox.ClientID %>').value;
var test2 = document.getElementById('<%=DropDownList1.ClientID %>').value;
alert(test2);

}





No comments: