-4
这就是我到目前为止 - 我可以帮助获得“alphabetized”版本显示吗?我一直试图添加不同的东西,但我不知道应该留下什么,应该怎么做。我能得到一些关于如何解决这个问题的提示吗?如何创建一个Alphabetizer程序?
<!DOCTYPE html>
<html>
<head>
<title> Alphabetizer</title>
</head>
<body>
<script>
<p id="words"></p>
function sumbitFunction(); {
var words = document.getElementById("words");
var input= input.sort();
words.textContent = input.join();
}
</script>
<form>
<form id="inputText">
<input type="text" name="text here" value="write here" size= 100
value=40>
<input type="button"
onclick="sumbitFunction() " value="Go"
</form>
</body>
</html>
一个良好的开端,至少在HTML/JS的问题,使用jsbin.com或jsfiddle.net使其他人更容易开始使用您的代码。 – abathur