﻿//customer-service-contacts.js

$('.onchange').change(function()
{
    if ($(this).find('option:selected').val() === 'CA')
    {       
        $('.zip').show();
    } else {
        $('.zip input').val('');        
        $('.zip').hide();
    }
});

var options =
{
    containerQuery: '.customer-service-finder',
    triggerQuery: '.customer-service-finder .submit',
    successHandler: function(result)
    {       
        $('#aspnetForm').submit();
        $('.customer-service-finder .submit').unbind();
        $('.customer-service-finder .submit').click(function(evt) {
            evt.preventDefault();
        });
    }
};

new $.validation.Group(options);

