netbeans的javaweb项目插入了jquery 但是html()这样的方法却不变色。功能也无法实现
<%@page contentType="text/html" pageEncoding="UTF-8"%>
html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BUPT_JavaEEtitle>
head>
<body>
<div>
<form action="/rank" method="post" id="rankForm">form>
留下你的名字:<input type="text" name="uname" id="uname"><br>
分数:<input type="password" name="upwd" id="upwd"><br>
<span id="msg" style="color:red">123span>
<button type='button' id="loginbtn">提交button>
div>
body>
<script type="text/javascitpt" src="js/jquery.js">script>
<script type="text/javascript">
$(function(){
$("msg").html("test");
});
script>
html>
$("#msg").html("test"); id前面加#,class前面加点.