We can analyze the subtle differences in a piece of code:
In IE browser, how many methods can we index to this text box object? (For the sake of difference, we set the name and ID to a different value)
1. Odemo
2. Demoform.odemo
3. Document.all.oDemo
4. Document.all.demoform.oDemo
5. Document.forms[0].odemo
6. document.forms[' Demoform '].odemo
7. document.forms[' Demoform '].childnodes[0]
8. document.f
1. Selector(1) wildcard characters:("input[id^= ' Code ']");//id all input tags ("input[id^= ' Code") starting with code;//id all Input tags ("input[id =′code′]" that start with the code. ;//id property with all input tags ending
The difference between Id and Name in HTML is in html: name refers to the user Name, ID refers to the user registration is a serial number automatically assigned to the user. Name is used to submit data. It is provided to the form
The difference between ID and name in the form (input)But name cannot be substituted for the following purposes:1. The control name of the form (form), and the submitted data is controlled by the control's name instead of the ID.
Web page Production WEBJX article introduction: the name and ID of the form are actually the same meaning, both to mark the object name. The difference is that name is Netscape and the ID is Microsoft. The form element (form input textarea Select) is used with the frame elem
ECSHOP obtains the top-level category id and name of a product on the product details page. ecshop top-level
In the goods. php file,
Find $ smarty-> assign ('goods ', $ goods );Add the following code to it:
Method 1:
$cat_arr = get_parent_cats($goods['cat_id']);foreach ($cat_arr AS $val) { $goods['topcat_id']=$val['cat_id']; $goods['topcat_name']=$val['cat_name'];}
Method 2:
$cat_arr = get_parent_cats($go
In database design, in order to reduce the number of records stored in a table, a relationship of 1 pairs can be stored in the same record, for example, one application is used by more than one person, and one storage method is as follows:
This can result in more and more records, and there is a way to store the data in 2 of records:
The advantage of the first method is that it is very convenient to display the employee name, which is associated wit
Jquery Regular Expression (mobile phone number, ID card number, Chinese name), jquery Regular Expression
Content to be verified in this example: Chinese name, mobile phone number, ID card and address. The verification method is shared with you for your reference. The details are as follows:
HTML (form ):
JQuery Verifi
Name is used to submit data. It is provided to the form and can be repeated;
Id is used for document operations and cannot be repeated. For example, document. getElementById ();
1. ID is used in the client script! NAME is used to obtain information about a form field of the submitted form. In the form, if
Name of Bean in spring1, each bean can have an id attribute, and according to the ID in the IOC container to find the bean, the id attribute value must be unique in the IOC container;2, you can not specify the id attribute, only specify the fully qualified class
Name of Bean in spring1, each bean can have an id attribute, and according to the ID in the IOC container to find the bean, the id attribute value must be unique in the IOC container;2, you can not specify the id attribute, only specify the fully qualified class
The user can manage the domain name registrant ID in the domain name Registrant ID management, the specific operation is as follows:
Use Passport and password to login Oray website, in turn, enter the "My Console"-"Product Management"-"Domain name management", into the doma
In a page, there are many controls (elements or labels). To make it easier to manipulate these labels, you need to identify an identity card for these tags.The required attributes are: Name, ID, class1. NameSpecifies the name of the label.1.1 Format: name= "username"/>1.2 Application Scenarios①form form:
Title Description DescriptionThere are n individuals, each with a name and ID (alias). Each person's name and ID are not duplicated. These people enter a room in turn and may leave. You can get some information in the process to tell the ID of someone in the room. Your tas
HTML text is a descriptive text composed of HTML commands. HTML commands can describe text, graphics, animations, sounds, tables, links, and so on. The structure of HTML consists of the header and body. The header describes the information required by the browser, and the body contains the specific content to be described.
Name was originally used for identification, but we recommend that you use ID to ide
Recent projects used in the need to call the real-name authentication interface, real-name authentication interface price compared to SMS is not a bit higher than a few cents, so that the conditions of the call authentication is strict, so use to JS verify the true name and JS authentication ID number.
Get to the poin
1. the paging function provided by Yii2ActiveDataProvider does not need to query the result when ActiveDataProvider is used in the list, in normal times, the id is converted into a name directly in columns of the GridView for convenience, but this method is used to view the debug... 1. the page feature of Yii2 ActiveDataProvider does not need to query the result when ActiveDataProvider is used in the list,
We can use
Code To analyze the subtle differences:
In IE browser, how many methods can we index this text box object? (For the sake of difference, we set name and ID to different values)1. odemo2. demoform. odemo3. Document. All. odemo4. Document. All. demoform. odemo5. Document. Forms [0]. odemo6. Document. Forms ['demoform ']. odemo7. Document. Forms ['demoform ']. childnodes [0]8. Document. Forms
The difference between name and id in html.
Maybe New friends can easily distinguish between id and class, but it is not necessarily easy to distinguish between id and name. Let's talk about the difference and connection between the two.
First, contact. They can be used to
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.