|
Title: Set disabled a datetimebox Post by: mapner on May 27, 2013, 02:39:22 PM Hello,
I want to set a datetimebox as disabled / enabled (depending of other control) Can I see some example? thanks Title: Re: Set disabled a datetimebox Post by: mapner on May 27, 2013, 05:49:47 PM I found it,
Code: function changeDS() { var Value; Value = $('#dt').datetimebox('getValue'); if (!$('#dt').prop('disabled')){ $('#dt').datetimebox({disabled:true,required:false }); } else{ $('#dt').datetimebox({disabled:false,required:true}); } $('#dt').datetimebox('setValue',Value); } One question: Why the value is lost when set it to disabled? |