質問

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