Created
August 8, 2009 01:01
-
-
Save rainhead/164254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Test</title> | |
<script src="http://yui.yahooapis.com/3.0.0b1/build/yui/yui-min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<form> | |
<div class="thediv"> | |
<textarea name="textarea">Foo</textarea> | |
</div> | |
<script type="text/javascript"> | |
YUI().use('node', function(Y) { | |
var div = Y.get('.thediv'), | |
areaThenInput = div.query('textarea, input'), | |
inputThenArea = div.query('input, textarea'); | |
Y.log("Textarea first: " + areaThenInput); | |
Y.log("Input first: " + inputThenArea); | |
}); | |
</script> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment