I have:
<input id="ONE" type="..." ...>
I want to replace this with:
<select id="TWO">开发者_JAVA技巧;
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<select>
How do I do that?
Use
$("#ONE").replaceAll("#TWO")
like described here. You can use replaceWith(content) if you want to specify replacing content in JS.
Maybe using replaceWith()
精彩评论