2010-02-10 40 views

回答

0

是的,因爲所有這些庫(框架)幫助容易跨瀏覽器的DOM擺弄..沿(jQuery中)的線

東西

$(document).ready(//when the DOM is loaded invoke the following function 
function(){ 
$('combobox_selector').change(// when someone changes the value of the combobox invoke the following function 
    function(){ 
       $('some_checkbox_selector').hide(); // hide some checkboxes.. 
       $('some_other_checkbox_selector').show(); // show some other checkboxes.. 
       } 
) 
} 
); 

選擇器份代碼的上述應該由確定哪些項目獲取隱藏並且其所示的邏輯來代替時的組合框的值更改..

3

是的。您可以在組合框的onChanged事件中輕鬆顯示/隱藏所需的複選框。你甚至不需要特殊的JavaScript庫來做到這一點。

相關問題