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

CopyClasses() public static method

Copies the CSS classes from one element to another.
public static CopyClasses ( jQueryObject source, jQueryObject target ) : void
source jQueryObject The source element to copy from.
target jQueryObject The target element to copy to.
return void
        public static void CopyClasses(jQueryObject source, jQueryObject target)
        {
            string classes = source.GetAttribute(Html.ClassAttr);
            if (string.IsNullOrEmpty(classes)) return;
            AddClasses(target, classes);
        }