开发者

How can I assign the contents of a form text field?

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜