my problem is that I want to call a function like:
$('div').doSomething('xyz');
and my js-code is:
var $ = function(element) {
var doSomething = function(xyz, xzy, zxy) {
alert(xyz + element);
};
};
but that does not work (I'm new to js anonymous functions), where's the error?
Thanks for help!