[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Eduardo Pinzon
sorry, tanks for tip 2009/8/10 Charlie Griefer > Aye, but I've been reprimanded (on this list) for suggesting that (and > incurring the 'overhead' of a jQuery object) when 'this' works just fine :) > > > On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote: > >> or >> >>$(function() {

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Anoop kumar V
Would e.target.id also work in this case? Thanks, Anoop On Mon, Aug 10, 2009 at 3:00 PM, Charlie Griefer wrote: > Aye, but I've been reprimanded (on this list) for suggesting that (and > incurring the 'overhead' of a jQuery object) when 'this' works just fine :) > > > On Mon, Aug 10, 2009 at 11

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
Aye, but I've been reprimanded (on this list) for suggesting that (and incurring the 'overhead' of a jQuery object) when 'this' works just fine :) On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote: > or > >$(function() { > >$('#myGroup input:button').click(function(e

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Eduardo Pinzon
or $(function() { $('#myGroup input:button').click(function(e) { self.location = 'foo.cfm?id=' + $(this).attr("id"); }); }); 2009/8/10 Erich93063 > > WOW I thought I tried that. That was my first instinct. I must have > had

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Erich93063
WOW I thought I tried that. That was my first instinct. I must have had an error somewhere else. That worked. THANKS! On Aug 10, 11:50 am, Charlie Griefer wrote: > this.id > > > > On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote: > > > I have a listing of records on a page and an "Edit" butto

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
this.id On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote: > > I have a listing of records on a page and an "Edit" button for each > record. I want to write some jquery that fires when the button is > clicked to go to the edit page for the record whose button I clicked. > > Here is what I have.