下面是我一直在研究的代码的一小部分;问题是,无论我做什么,我都无法在页面上加载jQuery ......或者我的代码是完全错误的。据我所知,一切都井然有序,其他人是否看到我的代码有什么问题
谢谢。
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script>
<script type ="text/javascript">
$(document).ready(function(){
$('.text').focus(function() {
if (this.value == this.title) {
$(this).val("");
}
}).blur(function() {
if (this.value == "") {
$(this).val(this.title);
}
});
});
</script>
<link rel="stylesheet" href="css.css" />
<title>
</title>
</head>
<body>
<form action = "backend.php" method = "post">
<br />
<label for="name">First Name</label>
<input type = "text" name = "fName" class = "text" value ="first" title="first" /><br />
<label for ="realm"> Last name</label>
<input type = "text" name = "lName" /><br />
<button type="submit" value = "submit">submit</button>
</form>
</body>
</html>