전체 글136 [jQuery] select 드롭다운 비활성화 시키기 $('form').bind('submit', function () { $(this).find(':input').prop('disabled', false); }); 태그에 readonly 속성만 주면 드롭다운은 아직 동작 가능한 상태이다. 이런경우 disabled 속성을 통해 선택을 하지 못하게하고, 폼을 제출할때 해당 속성을 풀어주면 된다. ref : https://stackoverflow.com/questions/1191113/how-to-ensure-a-select-form-field-is-submitted-when-it-is-disabled 2022. 7. 18. [jQuery] each 반복문을 통해 인덱스 및 요소 구하기 $('#list option').each(function(index, element){ alert("Iteration: " + index) }); 출처 : https://stackoverflow.com/questions/4341977/jquery-each-index 2022. 7. 17. [Javascript] 비교연산자 (==)로 비교할 수 있는 것들 ref : https://stackoverflow.com/questions/6003884/how-do-i-check-for-null-values-in-javascript 2022. 6. 15. [Spring] 이전 페이지로 리다이렉트 시키기 @RequestMapping(value = "/rate", method = RequestMethod.POST) public String rateHandler(HttpServletRequest request) { //your controller code String referer = request.getHeader("Referer"); return "redirect:"+ referer; } ref : https://stackoverflow.com/questions/804581/spring-mvc-controller-redirect-to-previous-page 2022. 6. 9. 이전 1 ··· 21 22 23 24 25 26 27 ··· 34 다음