Jquery Filter/Validate 

//Think about adding min/max values for numbers




/*********IMPORTANT***********/
//DO NOT USE $('body').unbind('keyup'); in your code or you will not be able to use these methods
/*****************************/




/*Things you can filter AND validate*/
/*
    Names
    Letters (with and without spaces) -- to support spaces on entry/validation simply add "-with-spaces" to your class name
    US Currency
    Whole Numbers (positive and negative)
    Floats (positive and negative)
    Credit Card Numbers
    Phone Numbers    
    Email
    Address (street only)
    Zip Codes
    Alphanumeric (with and without spaces)
    IP Address
    MAC Address
    Latitude
    Longitude
    GPS Point (e.g. 35.092945,-92.515869)
    URLs
    Hard Password    
    One input's value equal to another input's value
*/




/*Things you can only validate*/
/*
    FYI -- You can use an existing filter to help you out before validation
           (e.g. Positive Number Filter with a Bank Routing Number validation)
    Bank Routing Number
    Regex passed in via CSS class (HTML4 version)
    Regex passed in via the "pattern" attribute (HTML5 version)
*/




/*Usage*/
/*
    <input id="txtCCNumber" type="text" maxlength="19" class="filter-credit-card regex-credit-card"/>




    <input id="txtCCType" type="text" maxlength="20" class="filter-letters"/>




    --HTML5 Version--
    <input id="txtCCExpireMonth" placeholder="mm" value="" type="text" maxlength="2" class="filter-numbers" pattern="^\d{2}$" data-error="Invalid month"/>




    --HTML4 Version--
    <input id="txtCCExpireYear" placeholder="yy" value="" type="text" maxlength="2" class="filter-numbers regex:^\d{2}$" data-error="Invalid year"/> -- REGEX CANNOT HAVE A SPACE USE '\s' INSTEAD




    --CSS Classes--
    .input-valid
    .input-invalid
    .required




    .error-summary
    .error-tooltip
    .validation-message




    --Validate Forms and response--
    var validation = ValidateContainer("#info");
    if (validation.success) {
        alert("it's all good");
    }
    else {
    --For tooltip errors--
         $.each(validation.errors, function (index, value) {
                    ShowErrorToolTip(value.input, "right", value.message, true);
         });




    --For error summary--
        ShowErrorSummary(this, "after", "The following errors need to be corrected.", validation.errors, true);
    }




    --hard password--
    *8-16 characters
    *must contain at least 4 letters, a capital letter, and a number or symbol(!,$,+,-,comma,.,@,_,space)
*/
/*******/