<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" type="text/css" href="table.css">
<title></title>
<script src="../jquery-1.8.2.js" type="text/javascript"></script>
<style type="text/css">
</style>
<script type="text/javascript">
$(function()
{
$("#rating span").mouseover(function()
{
//$(this).prevAll.andSelf().text("★");
//$(this).nextAll.text("★");
$(this).prevAll().andSelf().text("★").end().end().nextAll().text("☆");
});
});
</script>
</head>
<body>
<div id="rating">
<span>☆</span>
<span>☆</span>
<span>☆</span>
<span>☆</span>
<span>☆</span>
</div>
</body>
</html>
Jquery 评分控件应用
最新推荐文章于 2019-10-21 00:36:01 发布