Feel the managerial power as we move a little army of elements to their new position in our HTML.
When working with a complex form, all methods of grabbing elements are useful. We may wish to loop over all select values or option elements. There could be business requirements for the form to validate each type of element a certain way.
Often the gaming industry propels code development more than the business community. Games require flexible code that can be written with a minimum of syntax. Here is a recipe that might give us some ideas on how a word game could be created.
<script type="text/javascript" src="mootools-1.3.0.js"></script> </head> <body> <p><span>The </span> Fox jumped over the lazy dog.</p> <p>Jack and Jill went up one <span>hill </span> and down another.</p> <p>By any other name, this <span>rose </span> is still...