Maha Dev Maha Dev - 4 months ago 32
jQuery Question

Bootbox js : Change placement of Ok Button

In bootbox.js, by default Ok button showing after Cancel button. I want it to be first and then cancel. Here is the situation of current scenario,

http://paynedigital.com/img/confirm-simple.png

I need Ok button first. I have scene its documentation but didn't find a way to do it.

Answer

You can do it by CSS.

.modal-footer button {
  float:right;
  margin-left: 10px;
}

Here is working fiddle http://jsfiddle.net/9L3A9/51/