SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(oEvent.sel.clientAvailDate).val("");              // to
  2.             $(oEvent.sel.clientAvailDate).change(); // ma byc pierwsze
  3.  
  4.            
  5.  
  6.             setTimeout(function() {
  7.               $(oEvent.sel.clientAvailDate).on('change', function() {
  8.                 console.log($(this).val());
  9.                 if($(this).val() == "") {
  10.                   $(oEvent.sel.searchAdvisersBtn).prop("disabled", true);
  11.                 } else {
  12.                   $(oEvent.sel.searchAdvisersBtn).prop("disabled", false);
  13.                 }
  14.               })
  15.             }, 0); // a bez timeouta przewaznie to sie robi pierwsze i przez to mi nie dziala, i musze tego timeouta na 0 //ustawic :( Bo 0 to i tak kilka milisekund jest
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top