Open.Core.Css.AddClasses C# (CSharp) Method

AddClasses() public static method

Adds a single class, or multiple classs from a space seperated list.
public static AddClasses ( jQueryObject target, string classValue ) : jQueryObject
target jQueryObject The target element to add to.
classValue string The class attribute value to apply.
return jQueryObject
        public static jQueryObject AddClasses(jQueryObject target, string classValue)
        {
            if (string.IsNullOrEmpty(classValue)) return target;
            foreach (string className in classValue.Split(" "))
            {
                target.AddClass(className);
            }
            return target;
        }
        #endregion