JQuery Allow Multiple Field Check Function
<p>I have a simple option for users to check the "title" or "username" for availability. The function runs the ttck.php and displays the appropriate alert. Problem is the function() will not reset to allow multiple checks without reloading the entire page.</p>

<pre><code>function checkTitle() { 
         $.post('ttck.php', $(".pubttl").serialize(), function(data) 
                { $('.tresult').html(data).delay(5000).fadeOut('slow'); });
                      }


&lt;span class="udo" onclick="checkTitle()"&gt; check title availability&lt;/span&gt;
</code></pre>

<p>What am I not seeing here to reload/reset this event so users can check as many times as necessary?</p>

<p>EDIT: This is the PHP</p>

<pre><code>if(empty($TITLE)) { echo 'Please enter a Title';} 
else { $que=mysql_query("SELECT * FROM `pubs` WHERE TITLE='$TITLE'"); 
$result=mysql_num_rows($que); 
if($result&gt;0) { echo 'Sorry, Title is already published. Try an alternate'; } 
else { echo 'Huzzah, your Title is Available!'; }}
</code></pre>

<p>There are a few extended parameters in this statement, but none that would effect the function.</p>
