trailing comma problem, javascript
<p>I'm currently trying hard to get my jQuery to work in IE7, when I Lint the following:</p>

<pre><code>$(".regflow").validate({
    errorLabelContainer: $("#error-message"),
    rules: {
        txtTextOnly: {required: true,textOnly: true},
        txtNumbersOnly: {required: true,numbersOnly: true},
        txtPhoneOnly: {required: true,phoneOnly: true},
        txtAreaCodeOnly: {required: true,numbersOnly: true},
        txtSimCodeOnly: {required: true,simCodeOnly: true},
        txtCprOnly1: {required: true,numbersOnly: true},
        txtCprOnly2: {required: true,cprOnly1: true},
        txtMailOnly: {required: true,mailOnly: true}
    },

    messages: {
     txtTextOnly: {required: "Dette felt skal udfyldes"},
     txtNumbersOnly: {required: "Dette felt skal udfyldes"},
     txtPhoneOnly: {required: "Dette felt skal udfyldes"},
     txtAreaCodeOnly: {required: "Dette felt skal udfyldes"},
     txtSimCodeOnly: {required: "Dette felt skal udfyldes"},
     txtCprOnly1: {required: "Dette felt skal udfyldes"},
     txtCprOnly2: {required: "Dette felt skal udfyldes"},
     txtMailOnly: {required: "Dette felt skal udfyldes"}
    },
});
</code></pre>

<p>... I get this error from Lint: <em>"warning: trailing comma is not legal in ECMA-262 object initializers"</em></p>

<p>Does anyone know what this means, and how do I fix it?</p>
