混水摸魚

[ JQUERY ] – 滑鼠移到checkbox上方自動選取



[html]
<input name="select[]" type="checkbox" value="a"
onmouseover="if($(this).prop(‘checked’)){$(this).attr(‘checked’,false);}else{$(this).attr(‘checked’,true);}">
<!–滑鼠移到checkbox上方自動選取 若該項目已選取 則取消選取 –>
[/html]

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *