Disabling radio buttons with jQuery

前端 未结 8 631
鱼传尺愫
鱼传尺愫 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:13

    code:

    function writeData() {
        jQuery("#chatTickets input:radio[id^=ticketID]:first").attr('disabled', true);
        return false;
    }
    

    See also: Selector/radio, Selector/attributeStartsWith, Selector/first

提交回复
热议问题