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");
});
Était-ce utile?

La solution

I solve this problem by using jquery-impromptu

Autres conseils

Try to use

$("#sampleButton").click(function(e){ 
  e.preventDefault();
  bootbox.alert("hey"); 
});
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top