jQuery - Can I mix mulitple JS code that processes different forms into on JS
<p>I have designed several web forms each of which links to a single form_operation.js.
This JS file handles all kinds different interaction on different forms.</p>

<p>It works so far for me. My question is: Are there some potential problems I will have in the future?</p>

<p>For example,
Assuem I have two forms a) login.php b) register.php.</p>

<p>Each form has defined different DIVs with different IDs. When login.php loads the form_operation.js, it can see some DIVs that are defined in register.php.</p>

<p>Most code is embedded into</p>

<pre><code>/////////////// form_operation.js  ////////////////////
function fun1() {}
function fun2() {}
$(document).ready(function() { // handle form 1.. } );
$(document).ready(function() { // handle form 1 &amp; 2.. } );
$(document).ready(function() { // handle form 1 } );
</code></pre>

<p>Thank you</p>
