Jquery работает в Firefox, но не в IE7 - PullRequest
0 голосов
/ 27 октября 2011

У меня есть следующий код, который работает в Firefox, но не в IE:

if ($('#interuptedClaim')) {
                $(".removeHref li a,.removeHref li a:hover").removeAttr("href").css({
                    "cursor": "default",
                    "color": "grey"
                });
            }
            $('#frontPageCancelButton').bind('click', function () {
                $('#interuptedClaim').hide();
                $('#enter-new-claim-menu-link').attr('href', 'create_claim.htm');
                $('#resolve-deferral-menu-link').attr('href', 'resolve_deferral_selection_criteria.htm');
                $('#update-pended-claim-menu-link').attr('href', 'update_pended_claim.htm');
                $('#adjust-claim-menu-link').attr('href', 'adjust_claim.htm');
                $('#adjust-subrogation-menu-link').attr('href', 'adjust_subrogation.html');
                $('#void-claim-menu-link').attr('href', 'void_claim.htm');
                $('#refund-processing-menu-link').attr('href', 'refund_processing.html');
                $('#update-claim-menu-link').attr('href', 'update_claim.html');
                $('#reopen-denial-menu-link').attr('href', 'reopen_denial.htm');
                $(".removeHref li a").css({
                    "font-weight": "bold",
                    "cursor": "pointer",
                    "text-decoration": "none",
                    "color": "#000"
                });
                $("#sidebar a:hover").css({
                    "font-weight": "bold",
                    "cursor": "pointer",
                    "text-decoration": "none"
                });
                $(".removeHref li a.active").css({
                    "font-weight": "bold",
                    "cursor": "pointer",
                    "text-decoration": "none",
                    "color": "#9E0B0F"
                });
                $('removeHreF li a:hover').addClass('linkHover');
            });

Как это можно исправить?

1 Ответ

1 голос
/ 28 октября 2011

В конце кода у вас есть $('removeHreF li a:hover').В начале этого селектора должно быть ..

Вот так: $('.removeHreF li a:hover').addClass('linkHover');

...