$('input').each(function () {
var textbox = $(document.createElement('textarea')).attr({
id : $(this).id,
name : $(this).attr('name'),
style : $(this).attr("style"),
"class" : $(this).attr("class")
}).val($(this).val());
$(this).replaceWith(textbox);
})
jq 把input改为textarea
最新推荐文章于 2024-01-06 20:30:00 发布