ChameleonForms/HtmlAttributes.cs
/// <summary>
/// Adds or updates a HTML attribute with a given value.
/// </summary>
/// <param name="key">The name of the HTML attribute to add/update</param>
/// <param name="value">The value of the HTML attribute to add/update</param>
/// <returns>The <see cref="HtmlAttributes"/> attribute to allow for method chaining</returns>
Adds or updates a HTML attribute with a given value.
Adds or updates a HTML attribute with a given value .
public HtmlAttributes Attr(string key, object value)
        {
            _tagBuilder.MergeAttribute(key.ToLower(), value == null ? string.Empty : value.ToString(), true);
            return this;
        }
public HtmlAttributes Attr ( string key , object value ) { _tagBuilder . MergeAttribute ( key . ToLower ( ) , value == null ? string . Empty : value . ToString ( ) , true ) ; return this ; }
Adds or updates a HTML attribute with a given value.
Adds or updates a HTML attribute with a given value .
The  attribute to allow for method chaining
The attribute to allow for method chaining
key
string
The name of the HTML attribute to add/update
The name of the HTML attribute to add / update
value
object
The value of the HTML attribute to add/update
The value of the HTML attribute to add / update