pass jquery element instead of selector string