I "ma jquery Kerl, und Prototype ist mir jetzt in den Kopf tretenPrototype Klasse löschen Eingangs
ich ein Eingabefeld haben, hier:.
<input type="text" value="" name="options[3]" class="input-text required-entry product-custom-option" id="options_3_text" onchange="opConfig.reloadPrice()">`
und diesen Prototyp-Skript:
function clearInput(){
Form.Element.clear('options_3_text')
Field.clear('options_3_text')
$('options_3_text').clear()
}
und eine Schaltfläche, die onclick="clearInput();"
gesetzt.
Ich mag würde die INPUT von t erhalten er Klasse .input-text statt der ID options_3_text. Jede Hilfe, die diese Klasse anstatt ID oder eine bessere Methode bekommt, wäre fantastisch!
Wenn es möglich wäre, würde ich dich küssen. Ich danke dir sehr. – Tom
Haha, großartig. Froh, dass ich helfen konnte :-) – wajiw