allow DOM elements or jQuery objects