Karl's da man :)

--
Ariel Flesler
http://flesler.blogspot.com

On 25 mayo, 11:35, Davis <[EMAIL PROTECTED]> wrote:
> wow..Karl,  what a GREAT help, many thanks/Davis.
>
> On May 25, 7:51 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Davis,
>
> > You could try this:
>
> > $('button[id^xxx]').click(function() {
> >      var i = this.id.split('-')[1];
>
> > });
>
> > ____________
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > On May 25, 2008, at 2:45 AM, Davis wrote:
>
> > > Hi all,
>
> > > I have some button  that will be generated dynamic in following
> > > pattern, and what i want to do is to assign each button a click()
> > > event with the unique integer ( come from button id's value ) pass
> > > into click() event.
>
> > > <button type='submit' id='xxx-1'  >Delete</button>
> > > <button type='submit' id='xxx-6' >Delete</button>
> > > <button type='submit' id='xxx-99' >Delete</button>
>
> > > logic something like :-
>
> > > $('match all button id like xxx%').click( function() { var i=id's
> > > num // ie 1, 6, 99 } );
>
> > > as i am new for jquery and not much idea what is the exactly stynax to
> > > archive it, appreicate for anyone help.
>
> > > Thanks/Davis.- Hide quoted text -
>
> > - Show quoted text -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to