[Solved] Why javascript code is not working on Microsoft Edge, IE, UC(on mobile), Opera MIni(on mobile), working in Chrome, Firefox [closed]


Without your code we will not be able to identify your problem. But Different browsers render and act differently in some situation. if you use jQuery like library it will be easy to get done what you want.

$(document).ready(function() {
    $('input[type=radio][name=type1]').change(function() {
        if (this.value == 'Response') {//if the value of radio button is male
            //your code to show the other part
            $("#Responsediv").show();
            $("#Applicationdiv").hide();


        }
        else if (this.value == 'Application') {//if the value of radio button is female
            //your code to show the other part
            $("#Responsediv").hide();
            $("#Applicationdiv").show();
        }
    });
});

6

solved Why javascript code is not working on Microsoft Edge, IE, UC(on mobile), Opera MIni(on mobile), working in Chrome, Firefox [closed]