prototypejs 에서 radio value 얻어오기
발생일: 2009.04.23 문제: prototypejs 에서 radio value 를 아주 그냥 깔꼼하게 얻어오는 방법은 없을까? 해결책: 1라인으로 해결한 방법이 있다. (여기서 얻어옴) var typeValue = Form.getInputs('myform','radio','type').find(function(radio) { return radio.checked; }).value; prototypejs 의 Form.getInputs API 를 참고하면 이해가 된다.
Daylogs/Javascript
2009. 4. 23. 17:35
공지사항