It it possible to combine a variable and a html element in order to create a selector?
Say, I have this variable:
var element = $('.myElement');
Is it possible to reuse this variable instead of doing this:
$('.myElement input').val('');
Something like... (which obviously doesn't work)
$(element 'input').val('');
Thanks.