diff --git a/views/docs/basics.ejs b/views/docs/basics.ejs index a69c875..b1ac0b3 100644 --- a/views/docs/basics.ejs +++ b/views/docs/basics.ejs @@ -1,4 +1,3 @@ -
Includes functionality used to manipulate the xui object collection.
@@ -75,6 +74,18 @@ var l = x$('.notice').last(); x$('#second').find('li'); // returns list items "three" and "four" +Given the input field in a form:
+ +<input id="first" type="text" value="xuijs" />
+
+We can access the underlying DOM elements in an XUI set by index
+ +x$('#first').attr('value'); // returns 'value' via the XUI set function attr
+x$('#first')[0].value; // returns 'value' via the underlying DOM element attribute
+
+
Sets the objects in the xui collection.