I create a dialog with jquery/jquery ui. When in this dialog a inputfield is changed, then i need a reaction.
but when i use
$( document )
.on( "change", function(){
alert("it works");
} );
then i got the alert, but i got also the alert when i didnt have open the dialog and change anywhere in current page something.