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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -