amount的值
分别是
100
200
300
400
500
随便选择哪个money和moeny1的值都会出来
但现在我想money1出现的不是100,200,300,400,500而是1,2,3,4,5即AMOUNT/100

解决方案 »

  1.   

    <form  id =Form1 runat="server">
    <select  name="amount" onchange="document.Form1.money.value=eval(this.options[selectedIndex].value/100); " style="COLOR:blue">
    <option  value =1000>1000</option>
    <option value=2000 >2000</option>
    <input type="text" id=money maxlength="60" size="9" value="30">
    </form>
      

  2.   

    <select name="amount" onchange="javascript:document.forms[1].money1.value=(this.value/100);document.forms[1].money1.focus();style="color:blue;">
    <input type="text" name="money1" maxlength="60" size="9" value="230">
            <input type="text" name="money" maxlength="60" size="9" value="230">试出来了。应该是
    =(this.value/100)
    才对。