Domanda

I use button as well as div but in all cases bootbox.js scroll my page to top.

$("#sampleButton").click(function(){
    bootbox.alert("hey");
});
È stato utile?

Soluzione

I solve this problem by using jquery-impromptu

Altri suggerimenti

Try to use

$("#sampleButton").click(function(e){ 
  e.preventDefault();
  bootbox.alert("hey"); 
});
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top