I have a couple of dom elements acting as placeholders for custom widgets. I'd like to extend them to give each type of widget a "setvalue" function like this:
$.fn.extend($(".dial"), {
setval: function(val) {
});
I don't want to extend jQuery.fn
itself as different ypes of widgets require different setval
methods.
Is there a way to extend DOM elements of a particular type instead of extending jQuery.fn
itself?