show: function () { this.resetForm(); $("input[id*=searchFilters]", this.searchForm).val(''); this.searchForm.modal("show"); $('input[name=searchFilters]').focus(); }, i tried most of the solution $(document).ready(function(){ $('#searchFilters').find('input[type=text],select,textarea').filter(':visible:first').focus(); }); $('#searchFilters').focusout(function() { setTimeout(function() { $(this).focus(); }, 0); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)