Title: unable to style disabled textboxes Post by: devnull on December 04, 2014, 01:16:43 AM When setting the attribute of a textbox to readonly, the outer span wrapper element does not reflect the fact that the element is readonly and I am therefore unable to style it.
My readonly textboxes need to be styled differently from read/write textboxes Code: <input type="text" class="easyui-textbox textbox-f" id="PART_ALIAS" readonly="true" style="display: none;" textboxname="XXX"> Title: Re: unable to style disabled textboxes Post by: jarry on December 04, 2014, 01:35:28 AM Please try to override the 'textbox-text-readonly' CSS style.
Code: <style> Title: Re: unable to style disabled textboxes Post by: devnull on December 04, 2014, 03:08:06 AM Hi;
Thanks, but that is not correct. If I need to set the background colour, or border style differently, then I need to set the outer span wrapper's attributes (class="textbox"), not the inner input element's attributes. I am able to 'hack' the styling to get the desired effect: Code: input[readonly].easyui-textbox + span.textbox { Title: Re: unable to style disabled textboxes Post by: jarry on December 04, 2014, 07:36:40 AM Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip and then override the 'textbox-readonly' CSS style.
Code: <style> |