Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #113348
    natejacobson
    Participant

    What’s the best way to handle events in Smart.Input when using JavaScript? How to attach listeners?

    #113350
    admin
    Keymaster

    Hi,

    You can try this way:

    const input = document.getElementById('myInput');
    
    input.addEventListener('change', (event) => {
      console.log('Value changed:', event.target.value);
    });

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.