Passing a variable (object) to the .on() function

Passing a variable (object) to the .on() function

I'm trying to bind an event handler for certain elements; past, present, and future (like the deprecated .live() function).


I understand I can do this:
  1. $(document).on('click', 'input.clickable', function(){
  2.       // blah blah
  3. });
Where 'input.clickable' is a selector string. I'd like to be able to pass in an actual jQuery object instead, like this:
  1. var fancy_input = $(something).find('input.clickable');
  2. $(document).on('click', fancy_input, function(){
  3.       // bloo blah blah
  4. });
It looks like that's not possible. The next best thing I can think of is using a variable that just contains the selector string, and passing that in. Does anyone have a better idea?