O
oddvark
Hi I have a simple question. From a click event, how do I find out
what element triggered it? In delphi there was a property called
"sender" which was the sender.
Heres an example of what I'm doing:
jQuery('#buttonA, #buttonB').bind('click', function()
{
if sender is buttonA
do something
else
do something else.
});
I would like it to be the same function just in one part it has to do
one thing if the sender is something otherwise it does something
else. Thanks!
what element triggered it? In delphi there was a property called
"sender" which was the sender.
Heres an example of what I'm doing:
jQuery('#buttonA, #buttonB').bind('click', function()
{
if sender is buttonA
do something
else
do something else.
});
I would like it to be the same function just in one part it has to do
one thing if the sender is something otherwise it does something
else. Thanks!