form表单提交后不刷新不跳转的实现方法

时间:2022-12-21 19:44:06
 <form target="hideIframe" action="http://127.0.0.1:8080/PGConsole/fkPersonalRisk/fkpersonalriskUpOrSave.action" class="riskForm" method="post" >                                          
                            <input type="text" name="ID_" value="${list.ID}">
                            <input type="hidden" value="${list.RISKLEVEL}" class="leve1" name="RISKLEVEL">         
                            <div class="div1">      
                                <div class="fDiv">
                                    <label for="label1">单笔交易</label>
                                    <input type="text" placeholder="<5000元" class="fInput" id="label1" name="SINGLETRANSACTION" onkeyup="eight(this)">
                                    <span>*</span>
                                    <em class="em feifa1"></em>
                                </div>
                                <div class="fDiv">
                                    <label for="label2">单日交易</label>
                                    <input type="text" placeholder="<20000元/日" class="fInput" id="label2" name="ONEDAYTRADING" onkeyup="nine(this)">
                                    <span>*</span>
                                    <em class="em feifa2"></em>
                                </div>
                                <div class="fDiv">
                                    <label for="label3">单月交易</label>
                                    <input type="text" placeholder="<50000元/月" class="fInput" id="label3" name="ONEMONTHTRANSACTION" onkeyup="ten(this)"> 
                                    <span>*</span>
                                    <em class="em feifa3"></em>
                                </div>
                                 <div class="fDiv">
                                    <label for="label4">交易次数</label>
                                    <input type="text" placeholder="<2000元/次/日" class="fInput" id="label4" name="TRANSACTIONTIMES" onkeyup="two(this)">
                                    <span>*</span>
                                    <em class="em feifa4"></em>
                                </div>
                                <div class="but">
                                    <input type="submit" class="serve" value="保存">
<!-- <input type="button" class="return" value="取消"> -->
                                </div>
                            </div>  
                    </div> 
                </form>
                <iframe name="hideIframe" src="about:blank" style="display:none;"></iframe>