JSFiddle - React, Tailwind, and code Playground

by manishie

HTML

<form name="myform" id="myform" action="" method="POST">  <div class="Email">

                    <label for="Email"></label>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="76%"><label for="Email"></label>
                          <input type="text" name="email" id="daEmail" size="30" value=""/> </td>
                        <td width="24%"><input type="image" name="imageField" id="imageField" src="images/Submit.png" /></td>
                      </tr>
                    </table>
                 </div></form>

JavaScript

$(document).ready(function(){
        $("#myform").validate({
            debug: false,
            rules: {
                email: {
                    required: true,
                    email: true
                }
            },
            messages: {
                email: "oh man!",

            },
            submitHandler: function(form) {
                // do other stuff for a valid form
                $.post('process.php', $("#myform").serialize(), function(data) {
                    $('#daEmail').html('test');

                });
            }
        });
    });