참고 : https://leechwin.tistory.com/entry/Bootstrap-Input-%ED%83%9C%EA%B7%B8%EC%9D%98-Clear-%EB%B2%84%ED%8A%BC $(document).ready(function(){ /* clear 버튼 */ $('.form-control').on('input propertychange', function() { var $this = $(this); var visible = Boolean($this.val()); $this.siblings('.form-control-clear').toggleClass('hidden', !visible); }).trigger('propertychange'); $('.form-control-clear').cl..
유효성 검사는 jsp 뷰단에서 자바스크립트로만 했었는데 Ajax로 한단어 한단어 체크하여 패스워드 유효화 체크를 한번 구현해 봄. 참고 : https://xxxelppa.tistory.com/56 http://sunkyun.com/community/bbs/board.php?bo_table=script&wr_id=13 https://hongku.tistory.com/249 https://sgroom.tistory.com/112 @RequestMapping(value = "/pwCheck", method = RequestMethod.POST) @ResponseBody public boolean PwCheck(String pw) { logger.info("PwCheck"); boolean check = fal..