W3.org validation stuck on one inline javascript attribute, how to fix it?
<p>I have a website with the following code for a specific element:</p>

<pre><code>&lt;textarea id="textToTranslate" onfinishinput="dothis()" rows="5"&gt;&lt;/textarea&gt;
</code></pre>

<p>onfinishinput waits for the user input and check if he is stopped. If he stop typing, the function dothis is called throught $('#waitUserInput').live() function.
The tricky part of my question is, how to change the above line to be completely jQuery.</p>

<p>The jQuery dat correspont to the dothis() function is the following:</p>

<pre><code>// Detect if user input stops
$('#waitUserInput').live("keyup", function(e)
{
    startTypingTimer($(e.target));
});


var typingTimeout;
function startTypingTimer(input_field)
{
    if (typingTimeout != undefined)
        clearTimeout(typingTimeout);
    typingTimeout = setTimeout( function()
    {
        eval(input_field.attr("onfinishinput"));
    }
    , 250);
}
</code></pre>

<p>Javascript dothis() function:</p>

<pre><code>function dothis(){
   // Ajax call when called
{
</code></pre>

<p>Now, when I go to <a href="http://validator.w3.org" rel="nofollow">http://validator.w3.org</a>, I have one error, and yes it is about the above code:
<strong>Attribute onfinishinput not allowed on element textarea at this point.</strong></p>

<pre><code>&lt;textarea id="textToTranslate" onfinishinput="dothis()" rows="5"&gt;&lt;/textarea&gt;
</code></pre>

<p>The question is, is it possible to turn the onfinishinput javascript attribute out of the textarea, but so that is is functioning the same?</p>

<p>I know it is a little complex, but I hope someone can help.</p>
