Frage

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

$("#sampleButton").click(function(){
    bootbox.alert("hey");
});
War es hilfreich?

Lösung

I solve this problem by using jquery-impromptu

Andere Tipps

Try to use

$("#sampleButton").click(function(e){ 
  e.preventDefault();
  bootbox.alert("hey"); 
});
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top