On Aug 8, 7:25 pm, "andrew.croce" <andrew.cr...@gmail.com> 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).attr("id");