Tab on disabled input

后端 未结 5 1681
囚心锁ツ
囚心锁ツ 2021-02-20 04:18

I am implementing progressive UI disclosure pattern in my application. Using which I am disabling the next elements. So based on input of one element the next element is enabled

5条回答
  •  遥遥无期
    2021-02-20 04:54

    On my idea a input event listener or change event listener for dropdown and input fields work better for your case. E.g:

    $(document).on('input','input',function()
    {
      $(this).next().prop('disabled',false);
    }
    

    or

    $(document).on('change','input',function()
    {
      $(this).next().prop('disabled',false);
    }
    

提交回复
热议问题