提交模态表格后如何保持引导模态。当我们提交表单时,整个页面都会刷新。但是我只需要模式div刷新。如果我保持模式数据不传递给jsp。我该怎么做请帮忙
<p>Node</p>
</div>
<div class="modal-body" >
<form name="myform">
<label>From<input class="date" id="from1" name="from1" type="date" value=${from1}></label><label>To<input class="date" id="to1" name="to1" type="date" value=${to1}></label>
<input type="submit" value="Filter" class="btn btn-default" name="Filter" onclick="openmodel()">
</form>
</div>
<%
try{
//Class.forName("com.mysql.jdbc.Driver"); //load driver
//Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/testdb","root","mobitel"); //create connection
String Name = "nn",Value,to;
Integer count;
//if(request.getParameter("Filter")!= null)
//{
String from ="as";
from = request.getParameter("from1");
out.println(from);
//PreparedStatement pstmt=null; // create statement
//pstmt=con.prepareStatement("SELECT NodeName,Count(NodeName) as occur FROM testdb.node group by NodeName" ); // sql select query
//pstmt.setString(1,from);
//pstmt.setString(1,to);
//ResultSet rs=pstmt.executeQuery();
//while(rs.next())
//{
%>