you can do it, but this is a usual dom object, not a jquery
instance... simple pass the object to through Jquery like ref =
JQuery(ref);

On 9 Mai, 15:32, "mac.gill" <[EMAIL PROTECTED]> wrote:
> Can i pass 'this' to a custom function from an event handler
> eg.
>
> $('p').('click',function() {
>
>   myCustomEvent(this);
>
> });
>
> myCustomEvent(ref) {
>
> //ref Object or JQuery object ?
>
>   $.get("path_to_cgi",{name = ref.text()},function(data)
> { alert("Data : " + data});
>
> }

Reply via email to