[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Karl Swedberg
Hi Calvin, One way you can simplify things is to give each of those containers (#letters-a, #letters-b, etc.) the same class -- for example, letters. Bind a click handler to all links within element that have class=letters Then, inside the click handler, you're going to load a file based on

[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Calvin Stephens
Hi Karl, I was actually trying to build on a tutorial from your book- Learning jQuery 1.3. The example was from Chapter 6 (the appending HTML/ AHAH technique). Your solution will more than likeley work... I was just trying to figure out how to make some reuseable code for all of the links. Your

[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Karl Swedberg
Yeah, I thought that looked familiar. ;-) Glad you like the book. Let me know if you need any more help with that. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 11, 2009, at 7:49 PM, Calvin Stephens wrote: Hi Karl, I was actually trying to build

[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Calvin Stephens
Thanks for offering to help out more Karl! I was able to get it to work! Cheers, Calvin On Sat, Apr 11, 2009 at 5:16 PM, Karl Swedberg k...@englishrules.com wrote: Yeah, I thought that looked familiar. ;-) Glad you like the book. Let me know if you need any more help with that. --Karl