Plugins - Enhanced form tag helper
Add to favoritesA simple monkey patch that enhances the core [FormTagHelper][1] by automatically adding CSS class names to each type of form tag. For instance, calling textfieldtag('foo', 'enter some text') will output the following:
<input id="foo" name="foo" class="text" type="text" value="enter some text" />
The rules for what class names are added are fairly simple but there are some special cases.
- All input tags will have a class name the same as there type.
- password fields get the class name 'text' in addition to 'password'.
- textarea tags get the class name 'text'.
- select tags are not enhanced.
