Completed retrieve every worth of a type in JS and PHP, and re-write the labels within the content material of electronic mail.
With jQuery Easy Contact Kind, you may set up an ajax contact type in your web site, writing solely the shape html code and one js code line. E mail is generated and ship by the plugin (php file included) .
The plugin retains the shape’s labels within the electronic mail sended, utilizing their “for” attribute.
jQuery Easy Contact Kind can verify required and electronic mail fields too, and add a customized class error to the improper components.
Many choices may be configured by parameters or CSS class.
Exemple : $(‘type’).simpleContactForm();
Parameters Checklist :
- clearAfterSend : Boolean | Clear type fields after sending the e-mail
- senderEmail : String | Sender e-mail
- url : String | Url to php goal file. If empty, the plugin use the motion type url.
- kind : String | Ajax kind, ‘put up’ or ‘get’
- topic : String | E-mail topic
- clearAfterSend : Boolean | Clear the shape components after ship
- errorClass : String | Error CSS class
- success : Operate | Operate executed after sending
Presets CSS Class Checklist :
- required : If is an empty worth, the shape don’t ship electronic mail, and add the errorClass to the component.
- electronic mail : If isn’t an electronic mail, the shape don’t ship electronic mail, and add the errorClass to the component.
- senderEmail : Substitute the senderEmail parameter by this component worth. If there’s no senderEmail class and no senderEmail possibility, the senderEmail would be the final electronic mail enter worth.