Vote count:
0
Here is my custom plugin
$.fn.custom = function() {
create: {//some code},
close: {//some code},
open: {//some code},
onClick: {//base on click event handler}
}
Now when I use this plugin as
someEle.custom({
onClick:{//how to write separate definition here}
}).custom('open')
asked 3 mins ago
How to bind events in jquery plugin without overriding existing methods for same events
Aucun commentaire:
Enregistrer un commentaire