Wil*_*ill 10
你可以使用jQuery的replaceWith功能.
$( "label" ).replaceWith( function() {
return "<input type=\"text\" value=\"" + $( this ).html() + "\" />";
});
Run Code Online (Sandbox Code Playgroud)
演示:http://jsfiddle.net/eqne2/1/
| 归档时间: |
|
| 查看次数: |
7742 次 |
| 最近记录: |