trying to check and verify expirydate of credit card : <p>I want to add a jquery piece of code where i had to chck if the expirydate month and year input fields have been defined and if yes, verify if they are greater than today's date </p>

<pre><code>if ($("#ccm").length) {
            errormsg = "Date should more than todsay";
            $("#form").closest('.form-group').addClass('has-error');            
            error = true;                   
        }
</code></pre>
