function that adds <SPAN>
<p>Good morning, I have a doubt.
I have a function that adds a  click the User, the side of my input</p>

<p>Plus this gives an error. I wanted just once even if adicionace a person clicks the button several times the action. Do you have a scan after input  if not add another </p>

<p>My code.</p>

<pre><code>//th = Name of the input that will add, at the low &lt;SPAN&gt;

      if(d.length == 0){
          $(th).after('&lt;SPAN class="erro"&gt;'+txt+'&lt;/SPAN&gt;');
          this.focus();
          return false;
      }
</code></pre>

<p>I would be very grateful for the help. :)</p>
