-1
Моего options.html:
<!doctype html>
<html>
<head>
<title>Item Notifier v1.0.2</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="jquery.js"></script>
<script src="options.js"></script>
</head>
<body>
<h1>Cowboy's Item Notifyer</h1>
<label>Last updated hat:<h2 id='itemname'>[ loading... ]</h2></label>
</body>
</html>
Тогда мой options.js:
$(document).ready(function() {
$('#itemname').html() = localStorage.mostRecentHat;
});
Это должно изменить innerHTML от [ loading... ]
к значение mostRecentHat
, но оно отображает значение как неопределенное и не изменяет innerHTML.