Jquery UI button gets disabled on refresh

后端 未结 5 526
醉酒成梦
醉酒成梦 2021-02-08 10:16

I asked about this on the jquery forum a few weeks ago without luck, so I will try again here :)

I\'ve made a simple widget for a project I\'m working on, but I have enc

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-08 10:58

    I've been getting this problem also and worked out it was down to silly behaviour in firefox, my fix was as so:

    before:

    //set up the buttons
    $("button").button();
    

    after:

    //set up the buttons (and make sure firefox behaves)
    $("button").button().attr("autocomplete", "off");
    

提交回复
热议问题