I use button as well as div but in all cases bootbox.js scroll my page to top.
$("#sampleButton").click(function(){
bootbox.alert("hey");
});
I use button as well as div but in all cases bootbox.js scroll my page to top.
$("#sampleButton").click(function(){
bootbox.alert("hey");
});
Try to use
$("#sampleButton").click(function(e){
e.preventDefault();
bootbox.alert("hey");
});