Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(oEvent.sel.clientAvailDate).val(""); // to
- $(oEvent.sel.clientAvailDate).change(); // ma byc pierwsze
- setTimeout(function() {
- $(oEvent.sel.clientAvailDate).on('change', function() {
- console.log($(this).val());
- if($(this).val() == "") {
- $(oEvent.sel.searchAdvisersBtn).prop("disabled", true);
- } else {
- $(oEvent.sel.searchAdvisersBtn).prop("disabled", false);
- }
- })
- }, 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