I run a function when i click a anchor tag.
$("#addItemMedicine")
.click(function () {
$.get("/Referred/AddMedicineNewRow",
function (data) {
$("#MedicineEditorRows").append(data);
})
.fail(function (xhr, err) {
alert("readyState: " + xhr.readyState + "\nstatus: " + xhr.status);
alert("responseText: " + xhr.responseText);
});
});
When run this function , Scroll Automatically to the top of the Page.