I’m reading JQuery Fundamentals at the moment and there is an part “jquery widget factory”…
In exercises, the following is written: “Don’t forget to return the table so other methods can be chained after the plugin!”
But i really do not understand how. Example:
$(document).ready() {
$('table').stripe(); //all ok, just do what it should do.
$('table').remove(); // does NOT remove the table
};
How can I destroy the stripe-widget?
Kind regards
hashishin