onChange="document.all.otherElem.value=youValue"

解决方案 »

  1.   

    <BODY>
    <INPUT id="txt" onpropertychange='sel.options[sel.selectedIndex].text = this.value'> -->
    <SELECT name="sel" onChange="txt1.value = this.value; txt2.value = this.options[this.selectedIndex].text">
    <OPTION value="one">one</OPTION>
    <OPTION value="two">two</OPTION>
    <OPTION value="three">three</OPTION>
    <OPTION value="four">four</OPTION>
    </SELECT> -->
    value:<INPUT id='txt1'>
    text:<INPUT id='txt2'>
    </BODY>
      

  2.   

    you'd better not use 'onpropertychange' in INPUT, try 'onkeyup' or 'onblur'
      

  3.   

    fason, why not use 'onpropertychange' ? please !
      

  4.   

    <BODY>
    <INPUT id="txt" onkeyup='sel.options[sel.selectedIndex].text = this.value'> -->
    <SELECT name="sel" onChange="txt1.value = this.value; txt2.value = this.options[this.selectedIndex].text">
    <OPTION value="one">one</OPTION>
    <OPTION value="two">two</OPTION>
    <OPTION value="three">three</OPTION>
    <OPTION value="four">four</OPTION>
    </SELECT> -->
    value:<INPUT id='txt1'>
    text:<INPUT id='txt2'>
    </BODY>
    因为onpropertychange比较浪费效率..反应不及时..