jquery实现预览提交的表单代码分享

2020-05-17 06:20:06易采站长站整理

预览表单,查看后确认提交或者返回重填



XML/HTML Code



    <form class=”mform” id=”myform” method=”POST” id=”myform” action=””> 
    <fieldset> 
    <legend>Registeration</legend> 
    <table cellspacing=”0″> 
    <tbody> 
    <tr> 
    <td><label for=”u_name”> Username :</label></td> 
    <td><input type=”text” name=”uname” id=”u_name”> 
    <td> 
    </tr> 
    <tr> 
    <td><label for=”u_pwd”> Password :</label></td> 
    <td><input type=”password” name=”uname” id=”u_pwd”></td> 
    </tr> 
    <tr> 
    <td><label for=”u_mail”> Email :</label></td> 
    <td><input type=”email” name=”uname” id=”u_mail”></td> 
    </tr> 
    <tr> 
    <td><label for=”u_country”> Country :</label></td> 
    <td><select name=”Country” id=”u_country”> 
    <option value=”” selected=”selected”>Select Country</option> 
    <option value=”United States”>United States</option> 
    <option value=”United Kingdom”>United Kingdom</option> 
    <option value=”China”>China</option> 
    </select></td> 
    </tr> 
    <tr> 
    <td><span> Gender :</span></td> 
    <td><input type=”radio” name=”gender” id=”male” value=”male”> 
    <label for=”male”> Male</label> 
    <input type=”radio” name=”gender” id=”female”  value=”female”> 
    <label for=”female”> Female </label></td>