How to bind events in jquery plugin without overriding existing methods for same events -
here custom plugin
$.fn.custom = function() { create: {//some code}, close: {//some code}, open: {//some code}, onclick: {//base on click event handler} }
now when use plugin as
someele.custom({ onclick:{//how write separate definition here} }).custom('open')
Comments
Post a Comment