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
Post a Comment