Вопрос

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 solve this problem by using jquery-impromptu

Другие советы

Try to use

$("#sampleButton").click(function(e){ 
  e.preventDefault();
  bootbox.alert("hey"); 
});
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top