I'm writing a jQuery plugin, pretty basic modal window plugin.
All of the modal windows will have an action button, which will either "save" "send" or "ok" etc. As well as possibly more things in the future. Where is the best place to make this call. Should I build it into the plugin, or is there a better way of keeping the call separate from the plugin? I guess the thought is that if I had it outside the plugin, it would open the door for a lot of custom actions for whatever situation I need. Not sure how easy it would be to bind click events to a button in a modal window being generated in a plugin though. Any thoughts? Thanks!