Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to display unique success messages on jquery form validation
    primarykey
    data
    text
    <p>hope you can help me on this one, I'm currently using this:</p> <p><a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow noreferrer">jQuery plugin:validation (Homepage)</a></p> <p>I've been reading related questions here, but this one is the closest get. httx://stackoverflow.com/questions/1863448/jquery-validation-on-success</p> <p>from the plugin's documentation httx://docs.jquery.com/Plugins/Validation/validate#toption</p> <blockquote> <p><strong>success</strong> <em>String, Callback</em><br /> If specified, the error label is displayed to show a valid element. If a String is given, its added as a class to the label. If a Function is given, its called with the label (as a jQuery object) as its only argument. That can be used to add a text like "ok!".</p> </blockquote> <p>Currently I'm only object given to me is the label, and I can only add text to it. Now what I want is to have unique success message. </p> <p>For example: username field will have a success message: 'username okay!'<br /> email = 'email seems right'</p> <p>something along those lines, instead of displaying just one generic success message on all the fields.</p> <p>Edit:</p> <p>I only tried this so far:</p> <pre><code>success: function(label) { label.text("Ok!").removeClass("error").addClass("success"); }, </code></pre> <p>EDIT just want to edit, what I wanted is a way to access the input element and probably access its attribute, to use it to display on the label.text. Something like label.text(element.attr("title"); for example.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload