<form action="/search" method="post" id="search-form">
<input type="search" name="search">
<input type="submit" value="Search">
</form>
<script>
$("#search-form").submit(function(event) {
event.preventDefault();
})
</script>
When I am submitting the form and getting the values in with PostFormValue. When clicking on submit button it reloads the whole page. I just want to avoid that!!!