[HTML5] Element id binding

2021-04-15 23:35

阅读:429

标签:col   message   mit   tar   automatic   post   name   nbsp   mes   

When you give an element an id attr, it will automaticlly create a object with the same name of id:

form id="theform" action="/" method="post">
  label for="message">Message:label>br />
  textarea name="message">!textarea>br />
  input type="submit" />
form>

script>
  theform.submit();
script>

 

[HTML5] Element id binding

标签:col   message   mit   tar   automatic   post   name   nbsp   mes   

原文地址:https://www.cnblogs.com/Answer1215/p/12359829.html


评论


亲,登录后才可以留言!