Dear All,

My textbox ID is TextBox1, How to get its value?

I tried:

var mytext = document.getElementById("TextBox1");
or
var mytext = document.getElementById("TextBox1").value;

no luck