Home > front end > Js how to replace the selected area input box
Js how to replace the selected area 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
CodePudding user response:
You give 8 a label & lt; Span> To span a click event, click span to span, $(" span "). The HTML (' & lt; Input type="text"/& gt; ');
CodePudding user response:
Input box which is not necessarily, also can is 3
CodePudding user response:
The selected here what do you mean? A little ambiguity
The selected text in the selected event in the container to some container such as state, cookies, etc., and then click on the button event is triggered when the take out these values, assigned to a container, you said