1

下面是我一直在处理的代码的spinet;问题是,无论我做什么,我都无法让 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>
4

0 回答 0