MY .js file:
//rounded corners
$(document).ready(function() {
$("#topbar").corner("bl br 5px");
$("#mainbar").corner("5px");
$("#sidebar").corner("5px");
$("#bottombar").corner("5px");
});
//form
$(document).ready(function(){
$("#commentForm").validate({
rules: {
FieldData0: {
required: true
},
FieldData1: {
required: true,
email: true
},
FieldData2: {
required: true
}
},
messages: {
FieldData0: {
required: "* Required"
},
FieldData1: {
required: "* Required",
minlength: "* 2 Characters Required."
}
}
});
})
My .html file:
<div id="mainbar">
<form id="commentForm" method="post" action="http://www.emailmeform.com/fid.php?formid=254816">
<h2>Contact Form</h2>
<p>
<label for="name">Your Name</label>
<input type="text" id="name" name="FieldData0" />
</p>
<p>
<label for="email">Your Email</label>
<input type="text" id="email" name="FieldData1" />
</p>
<p>
<label for="message">Your Message</label>
<textarea type="text" id="message" name="FieldData2"></textarea>
</p>
<p>
<input id="button" type="submit" value="Submit">
</p>
</form>
</div>
live example: