Try to use e.preventDefault() here to prevent default action of your anchor:
$(document).ready(function () {
$("#someId").on("click", function (e) {
e.preventDefault();
$.post("abc.html", function (data) {
$("#myModalDiv").html(data).fadeIn();
});
});
});
Also, because id
is unique, you just need to use #someId
instead of a#someId
.