I know that my question needs a little more clarification, so let me explain:
When I visited the jquery api documentation for $.fn.extend, I was personally blown away by how easy it was to create a custom jquery function like this:
$('input[type="checkbox"]').check();
Link here: http://api.jquery.com/jquery.fn.extend/
But if you wanted to add functionality to the function like this (pun intended):
check({ timer: 1000, redo: 4000, displayAt: 'someID' });
// filler parameters
How would you do that, exactly?
Also, how would you create a function like check({ ... });
that does not rely on any specific jquery selectors, but instead could just be called like a regular function like this:
displayRandomNumber({ min: 0, max: 100, displayAt: 'someID'});
// so no jquery selector in front.
Thanks for your help!