title: Input Field Live Validation Using JQuery?
body: <p>Actually i have two text input boxes in my html page..</p>
  
  <pre><code>    &lt;input id="input1" title="Text1"&gt;
      &lt;input id="input2" title="Text2"&gt;
  </code></pre>
  
  <p>Now i want to live validate on second Input field using First text Input box...</p>
  
  <p>Example for live validation <a href="http://livevalidation.com/examples#exampleHomepage" rel="nofollow">Live Validation</a></p>
  
  <p>Please give me some sample code for Live validation in Jquery..
      jQuery("#input2").live('change', function() {</p>
  
  <pre><code>        if("#input1==#input2") {
              alert('Both are same');
          }   
  
          else{
              alert('both are not same'); 
          }
      });
  </code></pre>
  
  <p>But it is error..</p>