SMALL
$(document).ready(function(){ $('#Btn').click(function() { var result = confirm('Are you sure you want to do this?'); if(result) { //yes location.replace('index.php'); } else { //no } }); });
출처: http://88240.tistory.com/173 [shaking blog]
LIST
'Jquery' 카테고리의 다른 글
jsp autocomplete, 자동완성 제한 (0) | 2018.12.06 |
---|---|
input number 형식 maxlength 정하기 (0) | 2018.11.29 |
checkbox 모두 체크하기 , 모두 해제하기(모두 체크하기 / 모두해제) (0) | 2018.11.23 |
Jquery removeClass 단일,여러개 클래스 삭제 (0) | 2018.11.05 |
jquery 부모 객체, 자식 객체, 접근자 (0) | 2018.10.29 |