I have function like below
$.fn.testFunction = function (options) {
$(window).resize(function () {
//call testfunction again
});
alert("Test");
}
If the window size changes, I want to call testFunction again. How can I do that ?
Thanks in advance,
Update: I just realized that you have options as well.