How to check a radio button with jQuery?

前端 未结 30 2130
独厮守ぢ
独厮守ぢ 2020-11-22 08:12

I try to check a radio button with jQuery. Here\'s my code:

30条回答
  •  -上瘾入骨i
    2020-11-22 09:07

    I got some related example to be enhanced, how about if I want to add a new condition, lets say, if I want colour scheme to be hidden after I click on project Status value except Pavers and Paving Slabs.

    Example is in here:

    $(function () {
        $('#CostAnalysis input[type=radio]').click(function () {
            var value = $(this).val();
    
            if (value == "Supply & Lay") {
                $('#ul-suplay').empty();
                $('#ul-suplay').append('
    \

    http://jsfiddle.net/m7hg2p94/4/

提交回复
热议问题