Tengo este htmljQuery .next¿Todo no funciona?
<tr>
<td>
Main Alliase/Current Alliase:
</td>
<td><input type="text" id="maina" class="countchars" max="30"/><br />
<span class="showchars"></span>
</td>
<td><span id="handle-1" class="selector" title="The Main Alliase with which people know you OR the alliase with which u play most <br /> <b>You'r App would be also named after this only</b>" header="Main Alliase/Current Alliase">?</span></td>
<td><div id="error-1" class="errors"></div></td>
</tr>
Y esto JS:
$('#maina').focus(function() {
$(this).closest("tr").find(".selector").qtip('toggle', true);
$(this).nextAll(".errors:first").html("Bla");
$(this).siblings(".showchars").show();
});
Pero el cuando me concentro en el maina
que hace las otras 2 cosas pero tampoco cambia el código HTML de errors
clase.
¿Por qué? ¿Qué he estado haciendo mal? Por favor, ayúdame Gracias
He intentado esto pero con un pequeño cambio i putt 'div' en lugar de 'tr' – kritya
Si utiliza TR que está seguro de obtener el div con el error de clase en el misma fila –
¿Pero por qué el div no me da el mismo resultado? – kritya