<script>
function checkform(){
for (var i=0;i<form1.sort.length;i++){
form1.sort.option[i].selected=true;
}
form1.submit();
</script><form action="index.php" method="post" name="form1" onsubmit=javaccript:checkform()>
<select name="sort" multiple>
<option value="1">一分类</option>
<option value="2">二分类</option>
<option value="3">三分类</option>
</select>
<input type="submit" name="submit" value="提交">
</form>
function checkform(){
for (var i=0;i<form1.sort.length;i++){
form1.sort.option[i].selected=true;
}
form1.submit();
</script><form action="index.php" method="post" name="form1" onsubmit=javaccript:checkform()>
<select name="sort" multiple>
<option value="1">一分类</option>
<option value="2">二分类</option>
<option value="3">三分类</option>
</select>
<input type="submit" name="submit" value="提交">
</form>
<script>
function checkform(){
for (var i=0;i<form1.elements['sort[]'].length;i++){
form1.elements['sort[]'].options[i].selected=true;
}
form1.submit();
}
</script><form action="index.php" method="post" name="form1" onsubmit="checkform()">
<select name="sort[]" multiple>
<option value="1">一分类</option>
<option value="2">二分类</option>
<option value="3">三分类</option>
</select>
<input type="submit" name="submit" value="提交">
</form></body>
function checkform(){
for (var i=0;i<form1.sort.length;i++){
form1.sort.options[i].selected=true;
}
form1.submit;
}
</script><form action="index.php" method="post" name="form1" onsubmit="checkform()">
<select name="sort" multiple>
<option value="1">一分类</option>
<option value="2">二分类</option>
<option value="3">三分类</option>
</select>
<input type="submit" name="submit" value="提交">
</form>