日期:2014-05-18 浏览次数:20770 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery</title>
<script language="javascript" type="text/javascript"
src="Jscript/jquery-1.4.2.min.js"></script>
<style type="text/css">
body{font-size:12px;text-align:left}
div{float:left;border:solid 1px #ccc;margin:8px;width:100px;height:65px;}
span{float:left;border:solid 1px #ccc;margin:8px;width:45px;height:45px;background-color:#eee}
</style>
<script type="text/javascript">
function changeCSS(){
$("input[name*='test']").val("name包含'test'的").css("background-color","blue");