我试图将文字更新为文本框,但忽略了空白后的文字
$.each(areas, function(i, value) {
$("#Area_block_edit").append("<div class='textBoxStyles1'>" +
"<article class='passwordBodyText'>Name</article>" +
"<input type='text' readonly='true' class='newregionText' value=" + value + " /></div>");
});
<section class='forgetPasswordSection' id='AddNewMultipleRegionSectionId'>
<div class='closeBtn' id='closeBtnId'>×</div>
<article class='headerText pswHeaderText'>Edit Multiple Area</article>
<div class='hrClass'></div>
<div class='scrollBarClass' id="Area_block_edit"></div>
<div class='hrefLinks'>
<a class='hrefClick' href='#' title="+ Add More" id="addmoreArea">+ Add More</a>
<input type="button" value="Save Area" title="SaveArea" class='AreaBtn okBtn' id='AddNewAreas' />
</div>
</section>
我像上面那样更新。 。区域包含以下文本测试123,测试1234但它只添加了测试,在文本框中测试