Jquery.noconflict (); Voluntary Surrender $ () aliasI. Basic SelectorA) Select elements by tag type$ ("P")b) Select elements by class$ (". Foo");c) SELECT elements by ID$ ("#bar");D) Joint selector for more precise selection$ ("Span.foo"). html ();
1, ie dedicated (through frames index image positioning):
Document.frames[i].document.getelementbyid (' element id ');
2, IE dedicated (through the IFRAME name image positioning):
document.frames[' iframe name
1. getelementbyid (ID)
Access an element through the element ID. This is a basic DOM method for accessing the page element, which is frequently used.
For example, in the following example, we can quickly access it with the ID of the DIV,
There is no time to read prototype. Now it's okay. It has been updated to 1.5 pre1. Haha, the powerful functions have to be learned. This is another shortcut to improve your JS capabilities.1. What is Prototype?Maybe you haven't used it. prototype.
1. getelementbyid (ID)
Access an element through the element ID. This is a basic DOM method for accessing the page element, which is frequently used.
For example, in the following example, we can quickly access it with the ID of the DIV, instead
1. getElementById (id) Access an element through the element ID. This is a basic DOM method for accessing the page element, which is frequently used.For example, in the following example, we can quickly access it with the ID of the DIV, instead of
$ (' #id '). Siblings () All sibling nodes of the current element$ (' #id '). Prev () current element before a sibling node$ (' #id '). Prevaall () All sibling nodes before the current element$ (' #id '). Next () The first sibling node after the
A: A brief introduction to jqueryjquery is a lightweight, multi-browser-compatible JavaScript library.jquery allows users to easily manipulate HTML Document, Events, make phone calls, and easily interact with Ajax, which can greatly simplify
JS obtains and operates the element methods in iframe. For details about how to obtain and set the object elements and documents in iframe in JS, see.
1. Dedicated to IE (Image Positioning through frames index ):
The Code is as follows:
Document.
There is no time to read prototype. Now it's okay. It has been updated to 1.5 pre1. Haha, the powerful functions have to be learned. This is another shortcut to improve your JS capabilities.1. What is Prototype?Maybe you haven't used it. prototype.
DOM (DocumentObjectModel) is a Document Object Model. APIs for HTML and XML documents (application interfaces) are provided ). This article introduces the common APIs for javascript operations on dom. If you are interested in javascriptdomapi, join
There is a simple hash table that uses an array to store elements directly. The hash function is a modulo of the table length, and the conflict resolution adopts linear detection.
Such a hash table is easy to implement. The search and insertion
1. Download a jquery.js file2. Introduction of Jquery.js File1 2 3. Using jquery to provide methodsPre-school, a way to cram for a bit of jquery. Here, I from a practical point of view to cram, not from the basic point of view to cram. Because the
Prototype. js 1.4 developer manual 1 (reproduced)
Prototype. JS is a very elegant JavaScript base class library, which has made a lot of extensions to Javascript, and supports Ajax very well. There are multiple effect libraries based on this
This section mainly describes some useful basic Dom methods and how to use them using JavaScript.For example, you can dynamically create and control mobile HTML elements.
Common Methods for document objects 1. getelementbyid (ID) Access an element
There are three main types of 802.11 frames:Data Frame--like 802.11 of workhorse, responsible for transferring data between workstations.Control Frame--the control frame is usually used in conjunction with the data frame, which is responsible for
1. Simplemodal defines the following CSS classes internallysimplemodal-Overlay: Matte simplemodal-container: pop-up container simplemodal-wrapsimplemodal-data2. Close the windowSimplemodal automatically binds the close function to the element in the
In Jquery, we use event binding, which has multiple functions. For example, bind, one, live, and delegate. Let's take a look at their definition and directly go to the topic: the bind () method is used to attach a handler to the event of each
The For property specifies which form element the label binds to. Implicit and explicit contactTags are typically associated with form controls in one of the following two ways: the form control as the content of the tag label, either implicitly, or
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.