JSFiddle - React, Tailwind, and code Playground
by ruslyrossi
HTML
<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
<script>
function popup(checkbox, box) {
$(checkbox).change(function() {
$(box).toggle(this.checked); //if checkbox checked show div
}).change(); //ensure visible state matches initially
};
</script>
<!--Validate-->
<script>
$(document).ready(function() {
$("#commentForm").validate({
rules: {
contact_email_owner: {
required: true,
email: true
}
}
});
});
</script>
<!--Validate-->
<form id="commentForm" name="commentForm" action="http://www.example.com/processs.php"
method="post">
<table cellspacing="0">
<tbody>
<tr>
<th align="left" width="180">Store Name</th>
<td align="left">
<input type="text" maxlength="255" size="40" value="" name="manufacturers_name_owner"
/>
</td>
</tr>
<tr>
<th align="left">Contact Person</th>
<td align="left">
<input type="text" maxlength="100" size="40" value="" name="manufacturers_url_owner"
/>
</td>
</tr>
<tr>
<th align="left">Contact Email</th>
<td align="left">
<input type="text" maxlength="32" size="40" value="" name="contact_email_owner"
/>
</td>
</tr>
<tr>
<th class="title" colspan="2">
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th width="180" align="left">Payment Setting</th>
<td align="left">
<input...