how to use chainable command mixed with if/else logic? any one know how to clean up the code as following? I do not want to have duplicated code .trigger(\'focus\', {f
.trigger(\'focus\', {f