Avatar of eddyperu
eddyperu
Flag for United States of America asked on

How to make jquery compatible with Chrome or firefox

Hi experts:
It is working great in IE6(I haven't test it in IE8 yet) but in Chrome and Firefox is not working.
My code is about radio buttons that contain collapsible panel.
In other words behave as the Accordion Jquery but with radio buttons.

I am using the latest Jquery code.

jQueryJavaScriptHTML

Avatar of undefined
Last Comment
Mangagm

8/22/2022 - Mon
leakim971

Hello eddyperu,

You MUST :) post your code.

Regards.
eddyperu

ASKER
I am using the last jquery code.

    <script src="jquery1.js" type="text/javascript"></script>
    <link href="demopage.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(document).ready(function() {
            $("#Ebene_dependency").slideUp();
            $('input[name="EBene"]').bind('click', function() {
                if (this.value == 'Yes') {
                    $("#Ebene_dependency").slideUp();
                }
                else {
                    $("#Ebene_dependency").slideDown();
                }
            });


            $("#Nbene_dependency").slideUp();
            $('input[name="NBene"]').bind('click', function() {
                if (this.value == 'Yes') {
                    $("#Nbene_dependency").slideUp();
                }
                else {
                    $("#Nbene_dependency").slideDown();
                }
            });



            $('.DivPrincipal')
                    .show()
                    .find('.fieldGroup>input[name="type"]').bind('updateDependencies', function() {
                        if ($(this).is(':checked'))
                            $(this).next(':hidden').slideDown(400);
                        else
                            $(this).next(':visible').slideUp(400);
                    })
                    .trigger('updateDependencies')
                    .click(function() {
                        $('.fieldGroup>input[type=radio]').trigger('updateDependencies');
                    })

                    .end()

                });

    </script>

Open in new window

ASKER CERTIFIED SOLUTION
Mangagm

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61