Hi saqib,

The live() method doesn't allow for passing custom data to the
handler.
http://docs.jquery.com/Events/live#typefn

There are possible solutions, though. Depending on what you need to
pass, you might be able to do so by using the data() method to store
your values on an element, and then access the stored values inside
the handler executed by live(). What is the nature of the data you
need to pass?

On Sep 9, 1:36 pm, saqib <tellsa...@gmail.com> wrote:
> Hi
> I have used bind method with data parameter many times
>
> $('#mydiv').bind('click', {val:a},myfunc);
>
> but in live method there is no such thing.
>
> $('#mydiv').live('click', {val:a},myfunc);
>
> Is there a work around to do achieve the task.

Reply via email to