﻿$(document).ready(function() {
    //hide of salary bands by default
$('#FieldWrapper_IndustryIDs, #FieldWrapper_IndustryID').hide();

    //
$("#SectorID").bind("change.toggleIndustry", function() {
        var sectorControls = $("#SectorID, #SectorIDs");
        var selectedSectorOpt = $(sectorControls).find("option:selected");

        if (selectedSectorOpt.hasClass("showIndustryList")) {
            $('#FieldWrapper_IndustryIDs, #FieldWrapper_IndustryID').show();
        }
        else {
            $('#FieldWrapper_IndustryIDs, #FieldWrapper_IndustryID').hide();
        }
    });

});
