XSL Template:
  • XML: An array of Elements to add Adds each of the Elements in the array to the set of matched elements. This is used to add a set of Elements to a jQuery object. $("p").add([document.getElementById("a"), document.getElementById("b")]) [ <p>Hello</p>, <span id="a">Hello Again</span>, <span id="b">And Again</span> ] <p>Hello</p><p><span id="a">Hello Again</span><span id="b">And Again</span></p> Get the current value of the first matched element. $("input").val(); "some text" <input type="text" value="some text"/>