In v3,why input method change not work?


#1

In v3,why input method change not work?

<input type="text" id="iSearch" onchange="alert('one')" placeholder="iSearch">not work

<input type="text" id="iSearch" @change="search" placeholder="iSearch">not work

$$('#iSearch').on('change',function(){alert(2)});not work


#2

wow, javascript will keep screwing you up if its not a component and you are using the @ symbol…

also, if it is a component, where is the definition of search method?

Also,

Your using the usual inline function onchange() and at the same time listening to the same event below:
$$('#iSearch').on('change',function(){alert(2)});not work

i advise you check and show us the console message!