jQuery disable/enable submit button

后端 未结 21 3102
难免孤独
难免孤独 2020-11-22 07:30

I have this HTML:



How can I do something li

21条回答
  •  名媛妹妹
    2020-11-22 07:53

    If the button is itself a jQuery styled button (with .button()) you will need to refresh the state of the button so that the correct classes are added / removed once you have removed/added the disabled attribute.

    $( ".selector" ).button( "refresh" );
    

提交回复
热议问题