I'm writing a jQuery plugin called "myplugin" with plugin method "getSomeWhat". This methods may return a collection of somewhat, e.g. attr('id') of element(s) in ".someclass". I'd like to maintain the chainability, but I can't find from the Internet.
Please kindly advise how to achieve.
$(".someclass").myplugin('getSomeWhat').each(function() {
//some stuff for each somewhat
});
Thanks!
William Choi