I have the following JavaScript function:

$('div.nextStepBilling').click(function (e) {
    if ($(this).parent().parent().attr("id") == "newCardDiv") {
        $('form#myForm').validate({
            rules: {
                cardHolder: "required",
                cardNumber: {
                    required: true,
                    minlength: 15,
                    maxlength: 16
                },
                CVV: {
                    required: true,
                    minlength: 3,
                    maxlength: 4
                }
            },
            messages: {
                cardHolder: "Card holder name is required",
                cardNumber: {
                    required: "Credit card number is required",
                    minlength: "Credit card must be at least 15 digits long",
                    maxlength: "Credit card must be at most 16 digits long"
                },
                CVV: {
                    required: "CVV (security code) is required",
                    minlength: "CVV must be at least 3 digits long",
                    maxlength: "CVV must be at most 4 digits long"
                }
            }
        });
        if ($('form#myForm').valid()) {
            alert("valid");
        } else {
            alert("invalid");
        }
    }
});


When I click on the proper div.nextStepBillingit always alerts valid, even if there is nothing in those inputs.

I don't get any errors in the console and I can get jquery validate to work using $('form#myForm').validate().element("#cardHolder"); I have the latest jquery and jquery validate packages included (in proper order) on the page. Can anyone see anything wrong with the above code?


Question: How is range measured in League of Legends?
Answer: I can't tell you exactly how much a unit is on the screen, there are however quite a few ways to get an idea of what different range represent.

A "distance unit" is a predefined distance on the field of justice. Range and speed are calculated from this unit.

Movement speed

Movement speed is the amount of "distance units" you travel in one second

Spell range

There are many spells with many different ranges. To get an idea of the range it represents, put you mouse over the spell and a circle will show you the range it represents. Here is an example for Kassadin's null sphere with a range of 700 :


Auto-attack range

There isn't anything that can show you directly the range you have. You have to get use to it and compare it with your spells range to get a good idea.

To get an idea of what 125 represents, Nunu's consume has a range of 125 :