﻿
$('a').addClass('linkdisable');

$(document).ready(function () {
        $('.statesdropdown').change(function () {
            var statecourseurl = $(this).val();
            document.location = statecourseurl;
        });
        $('.coursedropdown').change(function () {
            var courseurl = $(this).val();
            document.location = courseurl;
        });
        $('a').removeClass('linkdisable');
    });


//    var Selects = $('Select');

//    $(window).load(function () {
//        Selects.each(function () {
//            if (($(this).val().length > 0) && ($(this).is(":visible"))) {
//                $(this).parent().find('.jcf-select.jcf-select-style-2 .jcf-select-text').css({ 'color': 'black' });
//            }
//            else {
//                $(this).parent().find('.jcf-select.jcf-select-style-2 .jcf-select-text').css({ 'color': '#a4b0be' });
//            }
//        });
//    });
//    Selects.on('change', function () {
//        if ($(this).val().length > 0) {
//            $(this).parent().find('.jcf-select.jcf-select-style-2 .jcf-select-text').css({ 'color': 'black' });
//        }
//        else {
//            $(this).parent().find('.jcf-select.jcf-select-style-2 .jcf-select-text').css({ 'color': '#a4b0be' });
//        }

//    });

//// 29 March 2019 TO Apply control name on panel text change
//    $('.form-control').keyup(function () {
//        if (($(this).val().length > 0) && !$(this).parent().hasClass('input-focused')) {
//            var placeholder = $(this).attr('placeholder');
//            if (placeholder.length > 0) {
//                $(this).parent().append('<span class="text-focus">' + placeholder + '</span>');
//                $(this).parent().addClass('input-focused');
//            }
//        }
//        else if (($(this).val().length == 0) && $(this).parent().hasClass('input-focused')) {
//            $(this).parent().removeClass('input-focused');
//            $(this).parent().find('span.text-focus').remove();
//        }
//    });

//    $('.form-control').blur(function () {
//        if ($(this).parent().hasClass('input-focused')) {
//            $(this).parent().removeClass('input-focused');
//            $(this).parent().find('span.text-focus').remove();
//        }
//    });