Disabling radio buttons with jQuery

前端 未结 8 637
鱼传尺愫
鱼传尺愫 2020-12-05 01:28

I\'m trying to disable these radio buttons when a the loadActive link is clicked but for some reason it only disables the first in the order and then skips the rest.

8条回答
  •  粉色の甜心
    2020-12-05 02:30

    Remove your "each" and just use:

    $('input[name=ticketID]').attr("disabled",true);
    

    That simple. It works

提交回复
热议问题