[jQuery] Re: getting the id of a clicked object

2008-12-30 Thread Ricardo Tomasi
Yeah I know, that was stupid, it would be rendered as text. Sleep is a good thing. On Dec 30, 2:57 am, Kean wrote: > Richardo, > > LOL

[jQuery] Re: getting the id of a clicked object

2008-12-30 Thread buttman
Actually I just figured out the problem... I had the id I wanted to extract set in the that the resided in... the anchor didn't have any id set, which is why it wasn't being reported DOH. Anyways thanks for everyone's help. On Dec 30, 6:01 am, MorningZ wrote: > I would suggest showing more of

[jQuery] Re: getting the id of a clicked object

2008-12-30 Thread MorningZ
I would suggest showing more of your HTML, perhaps a "live" page where you display that not working... because http://paste.pocoo.org/show/97301/ works just fine

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Kean
Richardo, LOL

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Ricardo Tomasi
could be the space between '<' and 'a' - "" not "< a href...>" On Dec 30, 2:36 am, Kean wrote: > I'd be interested to see your html too. > > Ok another try > > jQuery(function($){ >    $("a.clicker").click(function() { >      alert(this.id); >      return false; >    }); > > }); > > On Dec 29, 7

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Kean
I'd be interested to see your html too. Ok another try jQuery(function($){ $("a.clicker").click(function() { alert(this.id); return false; }); }); On Dec 29, 7:54 pm, buttman wrote: > Still not working... I still get a blank popup window :( This is all > supposed to be inside

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread buttman
Still not working... I still get a blank popup window :( This is all supposed to be inside the "document.ready()" thing, right? On Dec 29, 10:22 pm, Kean wrote: > This is even better. > > jQuery(function($){ >    $("a.clicker").click(function() { >      alert(this.id); >    }); > > }); > > On De

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Kean
This is even better. jQuery(function($){ $("a.clicker").click(function() { alert(this.id); }); }); On Dec 29, 7:21 pm, Kean wrote: > Try this then > > jQuery(function($){ >   $("a[class=clicker]").click(function() { >     alert(this.id); >   }); > > }); > > On Dec 29, 4:27 pm, buttma

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Kean
Try this then jQuery(function($){ $("a[class=clicker]").click(function() { alert(this.id); }); }); On Dec 29, 4:27 pm, buttman wrote: > That doesn't work. When I do > > alert(this.id) > > in that function, nothing comes up. Additionally, "alert(this)" just > displays the url. > > On De

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread buttman
That doesn't work. When I do alert(this.id) in that function, nothing comes up. Additionally, "alert(this)" just displays the url. On Dec 29, 7:16 pm, Mike Alsup wrote: > > I have a bunch of anchors that look like this: > > > > < a href="" class="clicker" id="click_1">click here >

[jQuery] Re: getting the id of a clicked object

2008-12-29 Thread Mike Alsup
> I have a bunch of anchors that look like this: > > < a href="" class="clicker" id="click_1">click here > < a href="" class="clicker" id="click_2">click here > < a href="" class="clicker" id="click_3">click here > # > > The my jquery code looks like this: > >