In a php Web application, I am using twitter boot-strap modal box. When I click on the save button in the form, modal box is shown and the default focus is working correctly. But in iPad, when I tap the go button focus is not working.
Here is the twitter bootstrap modal code I am using:
<div class="modal hide" id="confirm-password">
<div class="modal-header">
</div>
<div class="modal-body">
<input type="text" placeholder="Your Current Password" value="" name="currentpassword" id="currentpassword" autofocus>
</div>
<div class="modal-footer">
</div>
</div>
Here is the JS Code :
$('#confirm-password').on('shown', function () {
jQuery('input:text:visible:first', this).focus(); //focus for input
});