2
I "엄마 JQuery와 사람, 그리고 프로토 타입 지금 머리에 저를 걷어차는
내가 여기에 입력 필드,있어
:.
<input type="text" value="" name="options[3]" class="input-text required-entry product-custom-option" id="options_3_text" onchange="opConfig.reloadPrice()">`
이 프로토 타입 스크립트를 :
function clearInput(){
Form.Element.clear('options_3_text')
Field.clear('options_3_text')
$('options_3_text').clear()
}
및 onclick="clearInput();"
을 설정하는 버튼
그는 ID options_3_text보다는 .input-text를 분류한다. 신분증이나 더 나은 방법보다는 클래스를 얻는 데 도움이된다면 환상적 일 것입니다!
내가 당신을 키스 것이다. 정말 고맙습니다. – Tom
하하, 끝내. 다행히 도울 수있다. :-) – wajiw