非常感谢任何帮助。
答案 0 :(得分:0)
你可以做这样的事情
HTML
<body>
<input id="textfield" type="text" name="name">
<input id="go" type="button" value="Go">
</body>
的jQuery
$('#go').click(function() {
var page = $('#textfield').val();
switch (page) {
case 'StudentID':
address = 'StudentID.html';
break;
default:
address = 'home.html';
}
window.location = address;
});