Skip to content

Instantly share code, notes, and snippets.

Created Jul 21, 2009
What would you like to do?
<title>Prepend Test</title>
<fieldset id="test_element">
Test Standards Compliance
<legend>Title of the Fieldset</legend>
<p>This is content.</p>
<script src="" type="text/javascript"></script>
<script type="text/javascript">
YUI().use('node', function (Y) {
Y.get('#test_element').prepend('<p>This is new content.</p>');
Y.get('#test_element legend').insert('<p>This is <strong>even more</strong> new content.</p>', 'after');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment