Hi
I am using the new onInput event handler and I can't get it to work on TextBox. I have checked the documentation and it should work on TextBox: https://www.wix.com/corvid/reference/$w.TextBox.html#onInput
I can get it to work fine on Input fields, though the edit does say onInput does not exist as an event...
Heres my code both places in the $w.onReady:
$w("#textBox1").onInput( (event) => { let newValue = event.target.value; // "newValue" console.log(newValue) } );
$w("#input1").onInput( (event) => {
let newValue = event.target.value; // "newValue"
console.log(newValue)
} );
When I enter somthing in #input1 the event is fired correctly, but hoting happens on #textBox1.
Does anyone know how to fix it or if it's a known issue?
Hey Yisreal
Sure! Here's the URL https://www.hestiacircle.org/online-final-grant-report
Please note that I have hidden the textbox and input field as my client is evaluating the site.
However, if you need to unhide them to test it out, please feel free to do so.
Thanks for your help!!
Hi Yisreal!
Thanks for the quick reply!
Here's the full $w.onReady() function
$w.onReady(function () { //TODO: write your page related code here... $w("#textBox1").onInput( (event) => { let newValue = event.target.value; // "newValue" console.log(newValue) } ); $w("#input1").onInput( (event) => { let newValue = event.target.value; // "newValue" console.log(newValue) } ); } );