jsp獲取input的value jsp在一個輸入框中輸入數(shù)據(jù)另一個自動顯示數(shù)據(jù)?
jsp在一個輸入框中輸入數(shù)據(jù)另一個自動顯示數(shù)據(jù)?這與JSP無關(guān),只要HTML JavaScript可以完成,//HTML<inputtype=“text”id=“InputBox”value=“”
jsp在一個輸入框中輸入數(shù)據(jù)另一個自動顯示數(shù)據(jù)?
這與JSP無關(guān),只要HTML JavaScript可以完成,//HTML<inputtype=“text”id=“InputBox”value=“”onkeydown=“showvalue(event)”/><inputtype=“text”id=“showvalue”value=“/>//JS functionshowvalue(EVT){varvalue}=evt.target.value值varshowBox=文檔.getElementById(“showValue”)showBox.value=值}