The default value of select is set dynamically according to the demand, to select the default code selected= "selected". The dynamic settings are as follows:
<HTML><Table> <TR> <TDwidth= "+"Align= "Left"> <Selectname= "Job"size= "1" > <optionvalue= "Ordinary member">General Membership</option> <optionvalue= "deputy leader">Deputy Team Leader</option> <optionvalue= "group leader">Leader</option> <optionvalue= "Director">Director</option> <optionvalue= "Deputy Minister">Deputy Minister</option> <optionvalue= "Minister">Minister</option> <optionvalue= "Secretary-General">Secretary</option> <optionvalue= "Vice President">Vice President</option> <optionvalue= "President">President</option> </Select> <!--to set the default value of select Dynamically - <Scriptlanguage= JavaScript> varJob= "Secretary General";//change it dynamically according to the background value document.getelementsbyname ("Job")[0].value=job; </Script> </TD> </TR></Table></HTML>
JS Dynamic Set the default value of select