Welcome Guest, Not a member yet? Register   Sign In
AJAX questions
#1

[eluser]Carlos Mora[/eluser]
Hi ignitors,

I've been learning about using AJAX with forms, using FormTorch as a base.

This works fine, except for a minimal problem, that follows:

There is spans between label and inputs to show eventual errors like

Code:
<span class="error" id="nombre_error">
   </span>
The js routine that submits data updates a <span> label with errors, making

Code:
$("#nombre_error").html(data.nombre);

That makes the error message appears, but ads the error message surrounded by a &lt;p&gt; as in:

Code:
<span class="error" id="nombre_error">
            <p>El campo nombre es necesario.</p>
   </span>

where the extra &lt;p&gt; came from? that changes the presentation, &lt;p&gt; is a block tag.


Messages In This Thread
AJAX questions - by El Forum - 04-26-2010, 11:01 AM
AJAX questions - by El Forum - 04-26-2010, 11:55 AM
AJAX questions - by El Forum - 04-26-2010, 01:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB