asked on June 5, 2018
So, by default, I'm showing the Reject button but hiding the Approve button. If the value of .dateLRApproval is empty/null, then status quo! However, if the value of .dateLRApproval is filled in with a date, I want the Reject button to hide and the Approve button to show.
$(document).ready(function(){ //hide buttons $('.Approve').hide(); //Show Approve button when there's an LR Approval Date if ($('.dateLRApproval').val() != '') { $('.Reject').hide() $('.Approve').show(); } }); //close document.ready
I'm sure it's something silly ... can someone please tell me what I'm doing wrong? I've spent too much time on this already. Thanks!
0
0