Event on a disabled input

前端 未结 10 2514
攒了一身酷
攒了一身酷 2020-11-21 15:53

Apparently a disabled is not handled by any event

Is there a way to work around this issue ?



        
10条回答
  •  青春惊慌失措
    2020-11-21 15:59

    $(function() {
    
      $("input:disabled").closest("div").click(function() {
        $(this).find("input:disabled").attr("disabled", false).focus();
      });
    
    });
    
    
    

提交回复
热议问题