eclipseでhtmlページを作っているのですが、外側のjqueryファイルを引用するとうまくいきません。以下は私のコードです:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/layout.css">
<link rel="stylesheet" type="text/css" href="../css/flexigrid.css">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="../script/flexigrid.js"></script>
<title>Insert title here</title>
<script charset="UTF-8">
$(document).ready(function(){
// document.getElementById("data").style.display="block";
$("data").css("display", "block");
});
</script>
</head>
<body">
<table id="data" style="width:200px; border:solid red 1px; display:none; ">
<tr>
<td>jnoifsf</td>
<td>nifs</td>
<td>nofsfsa</td>
</tr>
<tr>
<td>mflsf</td>
<td>noijfs</td>
<td>mifsf</td>
</tr>
</table>
</body>
</html>
12行目の注釈付きコードは機能します。