I solve this problem by using jquery-impromptu
why bootboxjs scroll my page to top?
-
15-06-2023 - |
Question
I use button as well as div but in all cases bootbox.js scroll my page to top.
$("#sampleButton").click(function(){
bootbox.alert("hey");
});
La solution
Autres conseils
Try to use
$("#sampleButton").click(function(e){
e.preventDefault();
bootbox.alert("hey");
});
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow