Alibabacloud.com offers a wide variety of articles about document getelementbyid select, easily find your document getelementbyid select information here online.
However, if you need to find a specific element in the document, the most effective method is getElementById ().However, when using getElementById, The results may be different for different browsers.Copy codeThe Code is as follows:Text1:Text2:I
For the most classic explanation of ID & Name, "ID is like our ID card, and Name is like our Name". That is to say, ID is unique in an html document, but the Name can be repeated, just as our personal names can be repeated, but the ID card is indeed
Document. getElementById details ① document. getElementById sometimes misses the name, which is said to be a BUG in IE;
Http://community.csdn.net/Expert/topic/4223/4223888.xml? Temp =. 1947443.
The page contains
Program code
One is name =
Js checkbox operation I suggest using document. getElementById (checkbox_id). checked. jquery is not recommended for checkbox operations. If you are interested, do not miss the checked attribute of jquery and checkbox.
1. After the page is
1: The ID is unique, and the name can be the same as the name.
2: An element defines the ID. When referencing this element, the ID attribute is directly used. Name is usually used in form and must be specified by document. form. * **, that is, the
1: The ID is unique, and the name can be the same as the name.
2: An element defines the ID. When referencing this element, the ID attribute is directly used. Name is usually used in form and must be specified by document. form. * **, that is, the
① Document. getElementById sometimes misses the name, which is said to be a BUG in IE;Http://community.csdn.net/Expert/topic/4223/4223888.xml? Temp =. 1947443.The page containsProgram codeOne is name = "category_id" and the other is id =
However, if you need to find a specific element in a document, the most effective method is getElementById ().
Note, however, that the results of using getElementById for different browsers may be different, as described below
Copy Code code
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.