Question

I need to track if an element and if ye which element is changed in a form.

The $( "input" ).change(function () { handler is not firing in Kendo UI. My code is

$( "input" ).change(function () {
     alert('aaaa');
     event.preventDefault();
  });

what am I doing wrong? Or is there a more proper way in kendo?

Was it helpful?

Solution

I think you are looking for keyup event.

$("input").keyup(function () {
  alert('aaaa');
 });

Demo

Change event for input only fires when focus is lost after changing value. See this

OTHER TIPS

Give your input (for example #target) and them:

jQuery( ".target" ).change(function() {

alert( "aaaaa" );

});

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top