jquery(3)
-
[jQuery] radio 선택된 값 체크하기
jQuery DB에 저장된 radio의 값을 선택(체크) 해주는 script $('input:radio[name=이름]:input[value='값']).attr("checked", true); $('input:radio[name="radio_isinterest"]:input[value="Y"]').prop("checked", true);$('input:radio[name="radio_isinterest"]:checked').parent().addClass("active"); Made in SLC
2014.01.27 -
[jQuery] jQuery min Error 간단 해결 방법 Tip
jQuery min ErrorjQuery 사이트에서 정식으로 받은 jQuery.min 파일을 프로젝트에 추가 시키면 아래와 같이 에러 표시가 나곤 합니다.소스 에는 문제가 전혀 없지만 보기에 좋지 않죠. 그래서 오늘은 아래 보기 싫은(개발자 라면 좋아하지 않을) 저 에러 표시를 없애 보겠습니다. eclipse의 메뉴에서 Project - Properties 클릭 Javascript - Include Path - Source - Excluded 더블클릭 Add 선택 **/jquery*.js 입력OK 클릭 위에서 입력한 내용이 추가된 것을 확인 후 Finish 클릭 위의 과정을 마치면 아래 이미지와 같이 우리가 보기 싫어 하던 Error표시가 없어졌습니다..ㅋㅋ Made in SLC
2013.07.18 -
[jQuery] 이벤트 바인드 (bind)
아래 두개의 이벤트는 동일하기도 하지만 차이점도 있습니다. 1번째 방법은 2번째 방법의 단축 메서드지만 DOM 요소가 이미 존재할 때만 쓸 수 있습니다. 부록. 클릭이벤트 제거 Made in SLC
2013.07.04