Response title
This is preview!
$(' > img', this)
var xml = "<rss version='2.0'><channel><title>RSS Title</title></channel></rss>";
// parseXML will parse the string to an Object, or as the docs put it:
// "parseXMLuses the native parsing function of the browser to create a valid XML Document."
// from what I cam see, this is already an object
var xmlDoc = $.parseXML( xml );
// I guess the next step is also described in the docs, is this casting?
// "This document can then be passed to jQuery
to create a typical jQuery object that can be traversed and manipulated"
// not sure what happens when you pass it to jquery...?
var $xml = $( xmlDoc );
// this is fine, I guess now we have a traversable object
var $title = $xml.find( "title" );
Because:eq()
is a jQuery extension and not part of the CSS specification, queries using:eq()
cannot take advantage of the performance boost provided by the native DOMquerySelectorAll()
method. For better performance in modern browsers, use$("your-pure-css-selector").eq(index)
instead.
© 2013 jQuery Foundation
Sponsored by and others.