Question:
I have #box11 which is a button for removing a text in #addressinput1, I dont know why but code doesnt work at all,.
Text in #Input1 can be removed easily.
Product:
Wix studio, wix velo
Additional information:
here is my code
$w.onReady(function () {
function resetFields() {
$w("#addressInput1").value = "";
$w("#addressInput2").value = "";
$w("#textbox1").value = "";
$w("#input1").value = "";
$w("#addressInput1").resetValidityIndication();
$w("#addressInput2").resetValidityIndication();
console.log("all fields was cleared succesfully.");
}
$w("#image2").onClick(() => {
resetFields();
});
$w("#text2").onClick(() => {
resetFields();
});
$w("#box11").onClick(() => {
resetFields();
});
});