How can I assign the开发者_C百科 contents of a form text field called "username" which is in the first form in a document to a variable called "thename"
Did you try this?
var thename=document.getElementById(<textFieldId>).value
How can I assign the开发者_C百科 contents of a form text field called "username" which is in the first form in a document to a variable called "thename"
Did you try this?
var thename=document.getElementById(<textFieldId>).value
精彩评论