<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>NewDocument</title>
<metaname="Generator"content="EditPlus">
<metaname="Author"content="">
<metaname="Keywords"content="">
<metaname="Description"content="">
<scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"type="text/javascript"></script>
<script>
functionaaa(){
$(".ali[class='a']").append("hello");

//注:如果是要class不等于a的,为$(".ali[class!='a']").append("hello");

}
</script>
</head>
<body>
<inputtype="button"onclick="aaa()"value="添加文本">
<table>
<ulclass="a">
<liclass="b"></li>
<liclass="a"></li>
<liclass="a"></li>
<liclass="b"></li>
<liclass="c"></li>
</ul>
</table>
</body>
</html>