jQuery plugin giving some of the HTML5 Form functionalities to older browsers
This plugin requires jQuery 1.7 and higher
This plugin allows you to use the following attributes on legacy browsers:
placeholderautofocusformactionformenctypeformmethodformtargetform
Apply the plugin directly on a <form> tag with the desired parameters and formFive will take care of the rest.
(boolean) default: false - Wether or not you wish to use the placeholder attribute on your form elements
(string) default: 'placeholder' - The class that will be automatically added to your elements with a placeholder attribute when no value has been given yet (to simulate the placeholder)
(boolean) default: false - Wether or not you wish to use the autofocus attribute on your form elements
(boolean) default: false - Wether or not you wish to use the formaction attribute on your form elements
(boolean) default: false - Wether or not you wish to use the formenctype attribute on your form elements
(boolean) default: false - Wether or not you wish to use the formmethod attribute on your form elements
(boolean) default: false - Wether or not you wish to use the formtarget attribute on your form elements
(boolean) default: false - Wether or not you wish to use the form attribute on your form elements which are located outside the intended form
$('.form-class').formFive({
placeholder: true,
placeholderClass: 'phclass',
autofocus: true,
formaction: true,
formenctype: true,
formmethod: true,
formtarget: true,
formAttribute: true
});
$('.form-class').formFive
placeholder: true
placeholderClass: 'phclass'
autofocus: true
formaction: true
formenctype: true
formmethod: true
formtarget: true
formAttribute: true