JQUERY input field value to be stored in a variable

I am unable to capture the value typed by a user in the textbox into a variable. I do not want to use

, is there any other way to do this?