Here is the version that references the art-template template (unspecified)
CSS Section
. Wk_res_ul li.active A,. Wk_res_ul li:hover a{
Color: #f90!important;
}
----------------------------------------
HTML section
<ul class= "Wk_res_ul fl_ul" style= "Border-bottom:none" id= "Subject_div" ></ul>
<script type= "text/html" id= "Subject_data" >
<label class= "Ul_name" > Disciplines:</label>
<% for (var i = 0; i<subject_list.length; i++) {%>
<li onclick= "Changeshow (this.id)" id= "<%=subject_list[i].subject_id%>" >
<a><%=subject_list[i].subject_name%></a>
</li>
<%}%>
</script>
----------------------------------------
JS section
function Changeshow (ID) {
$ ("#" + ID). addclass ("active");
$ ("#" + ID). Parent ("UL"). Children ("Li"). Not ("#" + ID). Removeclass ("active");
}
----------------------------------------
This method is suitable for the page has a plurality of <ul>, in order to achieve the reuse effect, the wording is a bit perverted, the elaboration of a long time, temporarily first so write, there is a good update immediately
Jqury control <ul> under <li> check effect