Disabling radio buttons with jQuery

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

    First, the valid syntax is

    jQuery("input[name=ticketID]")
    

    second, have you tried:

    jQuery(":radio")
    

    instead?

    third, why not assign a class to all the radio buttons, and select them by class?

提交回复
热议问题