$('selector').one( function() {
//the code will execute only once!
});
Check the documentation first.
On Sep 3, 4:22 pm, ludovic <[email protected]> wrote:
> Hi,
> It would be great to have the following syntax :
>
> $('selector').live( function() {
> // Executed only once by selector, when it has been inserted into
> the dom
>
> } );
>
> It would mean to add a trigger in each dom insertion made by jquery.
>
> This syntax would be very useful for widgets initialization.
>
> Regards,
> Ludovic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---