I could not find any document about this.

In js script, are firstname, flasname etc from id or name in the html?

For example in js

var validator = $("#signupform").validate({
                rules: {
                        firstname: "required",
                        lastname: "required",
                        username: {
                                required: true,

And in a html,

<td class="label"><label id="lfirstname" for="firstname">First Name</
label></td>
                                <td class="field"><input id="firstname" 
name="firstname"
type="text" value="" maxlength="100" /></td>
                                <td class="status"></td>



Where does firstname and lastname in rules come from? Are they from id
or name in input or label.

Reply via email to