<form 안에 있는 checkbox를 radio 처럼 쓰기 정보
HTML <form 안에 있는 checkbox를 radio 처럼 쓰기
본문
            
            
                        <form id="fwishlist" ...
loop....
<input type=hidden name=it_id[$i] >
...end loop
$("#fwishlist input:checkbox[name^=it_id]").click( function(){
$("#fwishlist input:checkbox:checked[name^=it_id]").attr('checked',false);
$(this).attr('checked',true);
});
                
                
                loop....
<input type=hidden name=it_id[$i] >
...end loop
$("#fwishlist input:checkbox[name^=it_id]").click( function(){
$("#fwishlist input:checkbox:checked[name^=it_id]").attr('checked',false);
$(this).attr('checked',true);
});
[이 게시물은 관리자님에 의해 2011-10-31 16:55:28 jQuery에서 이동 됨]
                    
                        
                추천
                
1
                
    1
댓글 1개
                
                    감사합니다.                
                
                
            
                    