lundi 21 août 2017

`keyUp` not working, what is the correct way to trigger a keyup on input field

I am trying to integrate a keyup event in my input element. but not works at all. any one help me to showing the correct way to trigger an event?

here is my hbs file:

<span class="opt-num">
            <input type="number" tabindex="1" min="0" max="9" maxlength="1" value="" onKeyUp= style="border:1px solid red" >

        </span>

my route.js file :

actions:{

        numberValidate(){ console.log("hi") }
}

But getting error as : Failed: An action named 'numberValidate' was not found




Aucun commentaire:

Enregistrer un commentaire