我开始使用 Jquery,我有以下 JS 函数我想用 jquery 做任何人来帮忙?
<script type="text/javascript" language="javascript">
function redirect() {
//var dest = "?phone=" + phone;
var prefill = "&prefill=3";
var info=document.choice.infos.value;
var dest = "&info="+info;
var url=document.choice.centres.value;
var urlfinal=url+dest+prefill;
document.location.href=urlfinal
}
</script>
<form name="choice">
<select name="centres">
<option value="http://toto.com/?var=1">var1</option>
<option value="http://toto.com/?var=2">var2</option>
</select>
<br />
<INPUT TYPE="text" NAME="infos">
<input type="button" value="Go!" onClick="redirect();">
</form>