i ma using this code to disable ValidUntil field when ExpirationTime has a valued, the problem this only work when i made a change but not when i edit the record, is there any way to modify this code for always disable Validuntil if Expirationtime has a value?
$('#x_ExpirationTime').on('change', function() {
if(this.value.length > 0)
$('#x_ValidUntil').attr('disabled','disabled');
else
$('#x_ValidUntil').removeAttr('disabled');
});
Thanks in advance