I have created a variable in my code, and I have a txtbox name txtHidden1. I want to fill the variable with the value of the txtbox but i dont' think I'm doing it right... Here's what I have now...

Code:
var varDNC
varDNC = txtHidden1.name
Very new to javascript, needed a feature that i couldn't do in VB.net and once this works it will be great!

Thanks guys!