Jquery替换标签

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huangyuxin_/article/details/82564201
text = $(this).parent().find('span').text();
$(this).parent().find('span').replaceWith("<input type='text' value='"+text+"'  name='real_name' />")

猜你喜欢

转载自blog.csdn.net/huangyuxin_/article/details/82564201