Specific functions to know, in the dropdown box to select a, the left of the list box to display the corresponding value, point that 4 buttons to achieve left and right 2 list box options mutually exclusive, very fun. It is estimated that when we develop, we often need to use it, so we have to post it.
The code is as follows:
<style>
TD,SELECT,INPUT{FONT-SIZE:9PT}
</style>
<script>
var subcat = new Array (); Drop-down list Array definition
Subcat[0] = new Array ("plan buyer B", "2", "cs101");
SUBCAT[1] = new Array ("warehouse manager B", "2", "cs111");
SUBCAT[2] = new Array ("Warehouse manager", "1", "111");
SUBCAT[3] = new Array ("Store Manager", "1", "122");
SUBCAT[4] = new Array ("program Approver", "1", "MASTER");
SUBCAT[5] = new Array ("plan approver B", "2", "cs100");
SUBCAT[6] = new Array ("Plan Buyer", "1", "103");
SUBCAT[7] = new Array ("Statistician", "1", "Li Shangying");
SUBCAT[8] = new Array ("Statistician B", "2", "cs133");
This array can continue to add elements according to the actual needs of the program
var onecount=subcat.length;
var c=0;d=0; Index position of the optoins of the 2 select ...
function Moveto2 (FN,S1,S2)//">>" button function
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.