jQuery click event on radio button doesn't get fired

后端 未结 6 809
栀梦
栀梦 2021-01-01 14:27

I\'ve got the following code to trigger a click event on some radio buttons! but it doesn\'t get fired! can any one help me with this!

CODE :

6条回答
  •  被撕碎了的回忆
    2021-01-01 15:11

    A different way

    $("#inline_content input[name='type']").change(function () {
        if ($(this).val() == "walk_in" && $(this).is(":checked")) {
            $('#select-table > .roomNumber').attr('enabled', false);
        }
    });
    

    Demo - http://jsfiddle.net/cB6xV/

提交回复
热议问题