2011-10-27 18 views
0

我有下面的代碼在Firefox,但不是在IE工作:jQuery是工作在Firefox,但不是在IE7

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

什麼是不工作? – jrummell

+1

更具體和明確!腳本顯示任何錯誤? – coder

+1

$('#interuptedClaim')總是如此嗎?你應該使用$('#interuptedClaim')。length – Guillaume86

回答

1

在代碼結尾處,您有$('removeHreF li a:hover')。該選擇器的開頭應該有一個.

像這樣:$('.removeHreF li a:hover').addClass('linkHover');

相關問題