Home > front end >  How to select areas of the asp to replace the input input box
How to select areas of the asp to replace the input input box

Time:09-23

Now in the online examination system, is how to draw the selected text to replace the input box, finally click the button to generate the test question?

5 + 3=8, for example, selected 8 after replacing the input box

Label & lt; Span> 8

How to replace the Input box

CodePudding user response:

Reference:
 & lt; Script language="JavaScript" & gt; 
The function callvalue () {
sendvalue=https://bbs.csdn.net/topics/document.test.count3.item (document. Test. Count3. SelectedIndex). The value;
Sendtext=document. Test. Count3. Item (document. Test. Count3. SelectedIndex). The text;
document.test.answer5.value=https://bbs.csdn.net/topics/sendvalue;
Document. The getElementById (" result5 "). The innerText=sendtext;
}
</script>


  •  Tags:  
  • ASP
  • Related