javascript - How to put error-label inside a stylized div? -


im using jquery validate... option wrapper: "div" creates "error label" inside div nice... want div class this:

$(".selector").validate({     wrapper: "div"     .... }) 

that returns:

<div style="">     <label for="email" generated="true" class="error" style="">type real email</label> </div> 

i want this:

<div class="errorclass">     <label for="email" generated="true" class="error" style="">type real email</label> </div> 

or i'll happy if teach me put stile inside div, thank you.

if understand correctly, think achieve doing this.

$(".selector").validate({ wrapper: "div" ....}).addclass("errorclass"); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -