This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

JS to detect edition of a string
#2
Try this:
Code:
$(function(){
  grp.listen('32/1/18', function(object, state) {
    if(state == 'init'){
      var lastvalue = object.value;
    } else {
      if (lastvalue != object.value){
        console.log('value is changed');
        // Do here other actions
        lastvalue = object.value;
      }
    }
  }, true); // set to true to execute on same object value
});
Reply


Messages In This Thread
RE: JS to detect edition of a string - by Erwin van der Zwart - 23.11.2020, 12:48

Forum Jump: