Wiki
Clone wikiLiteQuery / get
get()
#!javascript get(/* Number */ index)
Description
Return the DOM Element at the given index within the selected element(s).
Example
Initial Markup:
#!html <body> <div class='my-div'></div> <div class='my-div'><span>hello</span></div> <div class='my-div'></div> </body>
#!javascript var elem = $('.my-div').get(1); console.log('inner: ' + elem.innerHTML); // inner: <span>hello</span>
Updated