Original acknowledgement: http://xahlee.info/js/js_get_elements.html >
through ID Get element :
document.getElementById (ID string) return element Object, If it fails, get NULLNote ID should be unique within the page, but in iframe is
The first argument for all functions is: element, which represents the reference of the element to be manipulated, in order to add these methods to the DOM object when Element.extend, using the Methodize function. You do not need to enter the first
How does jquery get the first or last child element? Through the Children method, children ("Input:first-child")$( This). Children ("Input:first-child"). Val (); $ ( This). Children ("Input:last-child"). Val ();> Selector, $ (". Items>input:first"in
Preface: This is the category of the blog, jquery is the beginning of the search .Because checking the manual is too cumbersome, and sometimes you need to drill down into the detail page of the command to see what the purpose of this command
The first parameter of all functions is element, which indicates the reference of the Element to be operated. extend, add these methods to the DOM object, using the methodize function. You do not need to enter the first parameter during the call,
First of all, the method of JS acquisition, which is more troublesome than the jquery method, followed by the jquery method for comparisonJS is a lot more troublesome than jquery, mainly because the FF browser, the FF browser, will take your newline
To use the library function of ExtJS to perform various operations on the DOM, you need to obtain the object of the Element type, but Ext. although get () obtains Element, the parameter can only be id. If you like and worship jQuery selector, you
First of all talk about the acquisition of JS, which is much more cumbersome than the jquery method, followed by the jquery method for comparison
JS method is much more troublesome than jquery, mainly because the FF browser,FF browser will be your
Preface: This is the category of the blog, jquery is the beginning of the search. Because checking the manual is too cumbersome, and sometimes you need to drill down into the detail page of the command to see what the purpose of this command is.
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.