recharge.js 620 B

123456789101112131415161718192021222324252627
  1. $(function(){
  2. $(".payWayTab li").hover(function () {
  3. $(this).addClass("hover");
  4. },
  5. function () {
  6. $(this).removeClass("hover");
  7. }
  8. );
  9. var i=1;
  10. var show_li = $(".payWayTab li");
  11. show_li.each(function(index){
  12. $(this).click(function(){
  13. $(this).addClass("now").siblings().removeClass("now");
  14. $(".payWayContent .wayItem").hide().eq($(".payWayTab li").index(this)).show();
  15. i=index+1;
  16. });
  17. });
  18. $("input[type=radio]:checked").parent().addClass("focus");
  19. $("input[type=radio]").click(function () {
  20. $(this).parent().addClass("focus");
  21. $(this).parent().siblings("li").removeClass("focus");
  22. });
  23. })