|
Title: Dynamically disable field. Post by: amabanal on November 16, 2014, 06:42:09 PM I can't seem to find a way to dynamically enable or disable the field. since textbox are replaced by easyui fields then hide the original textbox. If you guys have any sample or something that can disable textbox based on the original setting kindly post here. Thanks
new in Web -Mike Powerbuilder Programmer. -edit Forgot to mention that this is triggered onLoad event. <td><input name="del_by" class="f1 easyui-textbox" id="allFields"></input></td> This will work if i will not use the easyui class. Title: Re: Dynamically disable field. Post by: jarry on November 16, 2014, 07:03:45 PM You can call 'disable' or 'enable' methods to disable or enable a textbox component.
Code: $('#tt').textbox('disable'); // disable itTitle: Re: Dynamically disable field. Post by: amabanal on November 16, 2014, 07:09:45 PM Sorry Sir, but that will not work, because like i said the original textbox is hidden and the one that is currently in display is the one that easyui created. I forgot to mention that this is triggered on load.
Title: Re: Dynamically disable field. Post by: jarry on November 16, 2014, 11:34:17 PM If you want to disable a textbox when initializing it, simply set the 'disabled' property to true.
Code: <input name="del_by" class="f1 easyui-textbox" id="allFields" disabled></input> |