bootstrap popup window

ref:

http://www.w3cschool.cc/bootstrap/bootstrap-v2-modal-plugin.html

http://getbootstrap.com/javascript/


example code:



 Date time picker 






  
  
  

  

  
  

  
  





following is the method to add event listener.

Just wanted to say that Bootstrap 3 handles this a bit differently. The event name is "shown.bs.modal".

$('#themodal').on('shown.bs.modal', function () {
   $("#txtname").focus();
});

or put the focus on the first visible input like this:

.modal('show').on('shown.bs.modal', function ()
{
    $('input:visible:first').focus();
})

http://getbootstrap.com/javascript/#modals

你可能感兴趣的:(bootstrap)