[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread andrew.croce
Thanks for your replies, I appreciate it. I put the contents of gallery.js inside the click function and it appears to be working now. I had tried this before, but there must have been an unrelated syntax error or something that was causing it to break. Thanks Andrew On Aug 9, 4:45 pm, Stephan

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 9, 7:38 pm, "andrew.croce" wrote: > What I was trying to do with  var current_section = $(this).attr > ("name"); was to create a variable that simply contained the "name" of > the particular subsection, which I could then attach to "_tab" to ... > idea, could that be screwing up the whole

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread andrew.croce
What I was trying to do with var current_section = $(this).attr ("name"); was to create a variable that simply contained the "name" of the particular subsection, which I could then attach to "_tab" to pinpoint the currently selected tab. I cant use the ID because it has a different value, used f

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 8, 7:25 pm, "andrew.croce" wrote: >                 var current_section = $(this).attr("name"); ... >                 $("#"+current_section+"_tab").addClass("current_tab"); This is wrong. The '#' searches by ID, not by name. Try (untested): > var current_section = $(this)