开发者

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

开发者 https://www.devze.com 2022-12-21 13:16 出处:网络
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?

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

精彩评论

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

关注公众号