css for selected list item

This commit is contained in:
Sanj 2012-02-20 20:08:20 +05:30
parent ed256ad6ed
commit 569e81d5b1
2 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,9 @@ html, body {
border: 1px solid #000; border: 1px solid #000;
} }
.selectedListItem {
color: blue;
}
.clear { .clear {
clear: both; clear: both;
} }

View File

@ -40,6 +40,8 @@ $(function() {
if ($target.data("loading")) { if ($target.data("loading")) {
return; return;
} }
$('.selectedListItem').removeClass("selectedListItem");
$target.addClass("selectedListItem");
if ($target.data("hasList")) { if ($target.data("hasList")) {
$target.find(".stopsList").toggle(); $target.find(".stopsList").toggle();
return; return;