Javascript and defaultValue of hidden input elements

后端 未结 2 1113
轻奢々
轻奢々 2021-01-04 01:29

Assume you have input element:


Then launch js script:

var e =          


        
2条回答
  •  臣服心动
    2021-01-04 01:33

    For hidden input elements, defaultValue isn't actually implemented. The reason why you get the same result ast .value is because the browser your using is just defaulting.

    See here for a discussion of this with Firefox.

提交回复
热议问题