Mixing OOP javascript with jQuery DOM manipulation
<p>I'm looking to start developing with javascript jQuery development in a big way.  I recently read "JavaScript: The Good Parts" by <a href="http://javascript.crockford.com/" rel="nofollow">Douglas Crockford</a>, and feel well prepared for prototypal based object oriented development.</p>

<p>I'm now trying to figure out how to weave jQuery usage with the patterns Crockford introduced.  I can think of two reasonable approaches:</p>

<ol>
<li>Add methods to DOM objects returned by jQuery (possibly using jQuery's extend method)</li>
<li>Add the DOM objects returned by jQuery as properties of domain objects (and vice-versa), and delegate calls appropriately.  This has the benefit of being able to add methods to the domain objects' prototype.</li>
</ol>

<p>What recommendations do you have for mixing OOP javascript with jQuery DOM manipulation?</p>
