$('form:not(.filter) :input:visible:enabled:first').focus()
This will select the first visible input element (<input />, <select>, <textarea>) that doesn’t have the class filter in it.
$('form:not(.filter) :input:visible:enabled:first').focus()
This will select the first visible input element (<input />, <select>, <textarea>) that doesn’t have the class filter in it.