I know that I can create custom jQuery plugins by using the $.fn.myFunction constructor, and the calling the custom function in JavaScript as $(\'selector
$.fn.myFunction
$(\'selector
This should work:
jQuery.MessageBox = function() { var show = function() { // something... } var hide = function() { // something... } return { show: show, hide: hide } }