Вопрос

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?

Это было полезно?

Решение

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

Другие советы

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

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

alert( "aaaaa" );

});

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top