EditGrid CheckBox Check All

CodeCharge Studio 2.x, 3.x, 4.x, 5.x
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

EditGrid CheckBox Check All

文章 yehlu »

代碼: 選擇全部

$("#clickAll").click(function() {
 
   if($("#clickAll").prop("checked"))
   {
     $("input[name*='web_show']").each(function() {
         $(this).prop("checked", true);
     });
   }
   else
   {
     $("input[name*='web_show']").each(function() {
         $(this).prop("checked", false);
     });           
   }
});


<input type="checkbox" id="clickAll" name="clickAll">全選</input>
回覆文章

回到「CodeCharge Studio」