implementing php & jquery for form validation
<p>I have a live preview form: <a href="http://davidwalsh.name/jquery-comment-preview" rel="nofollow">http://davidwalsh.name/jquery-comment-preview</a>
Which uses jquery to display the preview in real time:</p>

<pre><code>$(document).ready(function() {
  $('#live-preview-form input, #live-preview-form textarea').bind('blur keyup',function() {
    $('#lp-comment').text($('#comment').val());
    $('#lp-comment').html($('#lp-comment').html().replace(/\n/g,'&lt;br /&gt;'));
  });
});
</code></pre>

<p>what if i need to apply some PHP function on "#comment" which comes from textarea, before putting it in the jquery validate?</p>
