I have 2 pages, and on the first page I called up another page (second page) via ajax. On the second page there is a form that submits via ajax and then reloads the page once. But when the second page is updated, my first page is also updated. But I do not want this. I would just reload my inner page. Is there a way to reload only the inner page? Here are my internal page codes:
$(document).ready(function() { $(document).on('click', '.MyForm button[type=submit]', function(e) { e.preventDefault()
.error{width:200px; height:50px;border:1px solid blue;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script> <form class="MyForm" method="post"> <input type="text" placeholder="name" value="Aynaz" name="a1" /> <select name="Avg"> <option value="1">1</option> <option value="2">2</option> </select> <button type="submit">Submit</button> <div class="error">Show form success here after page reload</div> </form>
javascript jquery html css php
user6915755
source share