我想将此附加到文本输入而不是段落标记p
我尝试但我无法得到它
我的附加代码
$(req.responseText).find('GetRecipeDetailResponse').each(function(){//Get the servings/yield
var yield = $(this).find('Yield').text();
$('#Yield').append('<p><h6>Servings: ' + yield + " servings"+ '</h6></p>')
$('#Yield').fieldcontain('refresh')
});
html代码:
<div data-role="fieldcontain" id="Yield"><!--Yield-->
</div>