Open.Core.Html.SetDisabled C# (CSharp) Method

SetDisabled() public static method

Adds or removes the 'disabled' attribute on the given INPUT element.
public static SetDisabled ( jQueryObject input, bool isEnabled ) : void
input jQueryObject The input element to effect.
isEnabled bool The enabled value.
return void
        public static void SetDisabled(jQueryObject input, bool isEnabled)
        {
            if (isEnabled)
            {
                input.Attribute(Disabled, null);
            }
            else
            {
                input.Attribute(Disabled, Disabled);
            }
        }
        #endregion