|
Re: [jQuery] The index of an element with Event: msg#01157lang.javascript.jquery
Sam Collett a écrit : > You can workaround this though usign each: > > $("a").each( > function(i) > { > $(this).click( > function(e) > { > e.preventDefault(); > alert("item " + i + " clicked with href = " + this.href); > } > ) > } > ); > > Thanks, it's perfectly fine for me :)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jQuery] The index of an element with Event, Sam Collett |
|---|---|
| Next by Date: | Re: [jQuery] ajaxStart, ajaxStop issues, John Resig |
| Previous by Thread: | Re: [jQuery] The index of an element with Event, Sam Collett |
| Next by Thread: | Re: [jQuery] The index of an element with Event, Jörn Zaefferer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |