[jQuery] Re: Advice about Jquery selectors and updating content in DIV

2008-12-18 Thread Brandnew
Thanks a lot ! I missed you answer ! Ced On 21 oct, 16:27, ricardobeat wrote: > You should wrap all your HTML for a single 'hit' inside a tag so you > can refer to it easily, like: > >     Hit >     484 > > > Then your script could look like this (you can assign click handlers > to multiple e

[jQuery] Re: Advice about Jquery selectors and updating content in DIV

2008-10-21 Thread ricardobeat
You should wrap all your HTML for a single 'hit' inside a tag so you can refer to it easily, like: Hit 484 Then your script could look like this (you can assign click handlers to multiple elements at the same time): $('.hit').click(function(){ var id=this.id var hit = t