I want to change text of a text box on click.
using the following code:
export function text6_onClick(event) {
$w("#text6").text = "Success";
};
but when I click on the text box nothing happens. The placeholder text remains unchanged.
Please help
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Hi Narottam,
You have a semi-colon after the closing brace of the function. If you remove that, the text element's text should change upon clicking.