Hi,
I have such function:
And activating code:Code:function trigger() { var trigger_arg_1 = arguments[0]; arguments[0].change( function (trigger_arg_1) { mainFunction(trigger_arg_1); // now I need to pass the object like "sk" to mainFunction() return false; }); }
This should to assign event onchange to object sk. Onchange call mainFunction(). Here I need to pass the object like "sk" or similar to mainFunction(). Problem happened. I debug mainFunction():Code:window.onload = function() { sk=$("select[name=group]","fieldset#gramar"); // ... and other objects here trigger(sk); // to assign a event to sk.object // ... and other event assignments here };
console.log(thisEl.type); // shows "change"
console.log(thisEl); // * shows event object
* - I think here should be the element object, not the function... I used to use this for "select" elements and it work. But I did some little changes with JS and now does not. So I need to find some way how to fix it. Maybe somebody would help me?
Thanx


Reply With Quote
Bookmarks