Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

focus input field in modal

$('#myModal').on('shown.bs.modal', function () {
    ...
    setTimeout(function (){
        $('#textareaID').focus();
    }, 1000);

})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #focus #input #field #modal
ADD COMMENT
Topic
Name
5+3 =