Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

What is wrong with this sample code? o_O

<html>
<head>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log("Testing");
$('#test').append("Test");​
});
</script>
 <title>Sin título 4</title>
</head>
<body>
<div id="test">Hello world.</div>
</body>
</html>

What is wrong with this sample code? o_O

<html>
<head>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log("Testing");
$('#test').append("Test");​
});
</script>
 <title>Sin título 4</title>
</head>
<body>
<div id="test">Hello world.</div>
</body>
</html>

What is wrong with this sample code? o_O

<html>
<head>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log("Testing");
$('#test').append("Test");​
});
</script>
 <title>Sin título 4</title>
</head>
<body>
<div id="test">Hello world.</div>
</body>
</html>
Source Link
test
  • 18.3k
  • 67
  • 173
  • 248

JavaScript - Uncaught SyntaxError: Unexpected token ?

What is wrong with this sample code? o_O

<html>
<head>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log("Testing");
$('#test').append("Test");​
});
</script>
 <title>Sin título 4</title>
</head>
<body>
<div id="test">Hello world.</div>
</body>
</html>
default

AltStyle によって変換されたページ (->オリジナル) /