jQuery更改li菜单选中项的背景颜色
jQuery更改li菜单选中项的背景颜色
$("#leftpane li").click(function(){
//$(this).toggle();
var ix=$(this).index();
$("#leftpane li").each(function(){
var lx=$(this).index();
if (lx!=ix){
$(this).css("background","");
}else{
$(this).css("background","#006000");
}
});
$('#leftpane').listview('refrsesh');
});