Display the result here at displayResult---
<div class="form-group">
<div align="center" class="col-md-10">
<input type="text" id= "contentSearch" name="contentSearch" class="form-control">
</div></div>
<div class="form-group"><button type="submit" class="btn btn-default" id="submitSearch">Search
</button></div>
</form>
</div>
<div id="displayResult">
{% for result in chris%}{{ result.name }}{%endfor%}
</div>
and in ajax success--
<script>
$(document).ready(function () {
$("#searchform").on('submit', function (e) {
var data = {};
data['contentSearch'] = $('#contentSearch').val();
$.ajax({
url: '/ourserver/applicants/istiak/home',
type: 'post',
data: data,
success: function (returnedData) {
$("#displayResult").html(returnedData);// display
}
});
return false;
});
});
</script>
But while displaying the result it is creating a from again--
After the request when display the result --

So it is creating the form again and also displaying the result based on the value as well.
Like if the return result is 2 time than it display twice, if the result have 3 values it will display 3 times.
so how it is possiblr to stop being duplicate from and just only display the result !!
Not multiple times, just once !!!
Anyone knows how it can be solved !!!
