$('#submit-button > td').attr("colspan",2);
+ // get the url of whichever page we're on
var url = window.location.href;
- // 'current' class style to sidebar item that matches the current url
+
+ // 'current_page_item' class style to sidebar item that matches the current url
$('ul.sidebar li a').each(function() {
if ($(this).prop('href') == url) {
$(this).addClass('current_page_item');
$('#submit-button > td').attr("colspan",2);
+ // get the url of whichever page we're on
var url = window.location.href;
- // 'current' class style to sidebar item that matches the current url
+
+ // 'current_page_item' class style to sidebar item that matches the current url
$('ul.sidebar li a').each(function() {
if ($(this).prop('href') == url) {
$(this).addClass('current_page_item');