My question is this:
I have a main view and inside it I have a div where another view is loaded with jquery. When I load the div with jquery, the result is correct, but it puts me back at the top of the view and my div is down How can I make the div content load without moving the current scroll position?
html:
<html><body>
...
<div class="col-md-12" id="productList"></div>
...
</body></html>
jquery:
function loadProduct(){
var op_sort = document.getElementById('op_sort').value;
var op_dir = document.getElementById('op_dir').value;
$.get("showProductsListSorted",
{op_sort: op_sort, op_dir: op_dir},
function(response){
$('#productList').html(response);
}
);
Thanks in advance.