What you can do with an event for one single element, you can do assigne the event once, getting the target, and working as it is the single element. Result, 1 function, a bit slower, but one event as well, instead of "thousands"
Ariel suggestion is anyway the quickest one to fix the problem On Tue, Oct 21, 2008 at 9:54 PM, joeformd <[EMAIL PROTECTED]> wrote: > > 2. Not entirely sure how I can use just one switch.. each link element > has a numeric id eg 'a_delete_123'. They're all assigned an onclick > event to grab that id, and show a confirm dialog box. If OK is > clicked, the id gets sent off as an ajax request. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
