2012-04-02 19 views
0

私のシナリオでは、2つのラジオボタンリスト(asp.netサーバーコントロール)があります。 1番目のラジオボタンリストで項目を選択すると、2番目のラジオボタンリストの2つの項目が表示されません。jqueryを使用して他のラジオボタンリスト内の項目の選択に基づいてラジオボタンリスト項目を非表示

+0

html/aspコードの抜粋を表示すると良いでしょう... – mshsayem

答えて

0
$("#<%# firstRadioBtnList.ClientID %> input[type=radio]").click(function(){ 
    var secondRadios = $("#<%# secondRadioBtnList.ClientID input[type=radio]"); 
    // now select which radio buttons you need to hide (from the secondRadios) 
    // say those are 'radiosToBeHid' 
    radiosToBeHid.closest('td').css('display','none'); 
}); 
関連する問題