Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82032

Why this event doesn't works ? HELP !

$
0
0

editor.field( 'myField' ).input().on( 'change', function () {
editor.submit();
});
what happens is it do the action just inmediatly after i just active the inline editor, i mean just when i click and then the select is visible, then inmediatly do the action in this case ( editor.submit() ), it don't wait to user change the value.

Well if you don't have the answer of that question i found another way where im stuck too.
And it is leave the code like that but add a condition where we are going to compare the current value with the new one . so that can work but i dont know how to get the current value i think i have to get it from row.data()['property']..

editor.field( 'myField' ).input().on( 'change', function () {
if( editor.field( 'myField' ).val() != currentValue )
{
editor.submit();
}
});


Viewing all articles
Browse latest Browse all 82032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>