How to create and validate forms in Javascript / JQuery? : <p>I'm currently developing a checkout form for an e-commerce site, as any other checkout there are a lot of validations on its fields, things like: </p>

<ul>
<li>If the user selects the radio buton 'I'm Company' show the VAT field.</li>
<li>If the user has no billing address show the inputs to create a new shipping address. </li>
<li>If the user has billing addresses list them as radio buttons.</li>
</ul>

<p>And a lot more, currently I'm using thinks like <code>addClass('hide')</code> or <code>removeClass('hide')</code>, in other cases I use <code>toggle()</code>, it works but somehow I feel that this is not a solid approach.</p>

<p>Is there any 'Best Practices' to create forms and validate them?</p>

<p>Best Regards.</p>
