---restore content starts---HTML forms and inputs
HTML layout
HTML Framework
HTML forms are used to collect different types of user input.Example
Text field
This example shows how to create a text
1 HTML forms and inputs 1.1 HTML Form IntroductionA form is a region that contains form elements.Form elements allow users to enter content in the form, such as text fields (TEXTAREA), drop-down lists, radio boxes (radio-buttons), check boxes
1. Cancel the dashed box when the button is pressed, add the attribute value in input hidefocus or Hidefocus=true 2. read-only text box contents, add attribute value in input readonly 3 4 5 only for Chinese (with flashing) 6. Only numbers (with
first, the use of three ways JS1, in the HTML tag, directly embedded JS (do not promote the use of) Point me >>> does not meet the requirements for separation of content and behavior2. Use package JS code in HTML page >>> Script tags can be placed
HTML Help Class (HTML helper)Reference Address: http://www.yiiframework.com/doc-2.0/guide-helper-html.htmlEvery web app generates a lot of HTML tags, and if the tag is static, he can effectively avoid the confusion between PHP code and HTML, but
JS Code judgment collection (Part 2)
//////////////////////////////////////// //////
Function trim (inputstr) // place space, before obtaining the form information entered by the client,Trim is used before submission. For example, "form1.org _
JS Code judgment collection (Part 2)
Function trim (inputstr) // place space, before obtaining the form information entered by the client,Trim is used before submission. For example, "form1.org _ name. value = trim (form1.org _ name. value );"{If (
HTML form preface: HTMLHTML (HTMLtag ). To some extent, Html document img, html link a, html title h, and so on. The specific image size and title Font are provided in the form of attributes. HTML form (used to collect different types of user input)
Window.onload =function () { //prevent problems with submitting forms after you press the Enter buttondocument.getElementsByTagName ("form") [0].onkeydown =function () { if(Event.keycode = = 13) {return false; } }; varInputs =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.