Get variables value after change
<p>I'm writing a script that should be executed after 2 changes.Can somebody help me.this is my script:</p>

<pre><code>  var firstname;
  var secondname;

 $('#first_name').live("change", function(){
 firstname=$(this).val();
 })

 $('#second_name').live("change", function(){
 secondname=$(this).val();
 })

 if(firstname != null &amp;&amp; secondname != null){
 console.log(firstname);
 console.log(secondname);
 }
</code></pre>

<p>thank to all of u...</p>
