Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
85
0
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement