0

I have a bunch of address inputs and I want to change the default required message in one go without typing each message for each input field.

$(document).ready(function() {
    $('#frm').validate({
        rules: {
            street: {
                required: true
            },
            city: {
                required: true
            },
            province: {
                required: true
            }, ...
        },
        messages: {
            required: "ASDSA"
        }, ...
});

I tried this code but it does not work. No response or effect from the browser whatsoever.

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.