$("#divid").html($(data).html() + "<input type="checkbox" id="checkplease" onclick="toggleCheckbox(this)"/> value="<g:message code="property.value" />");
我想从属性文件中获取复选框的值。我该怎么办?
最佳答案
您正在混合报价,请尝试以下操作:
$("#divid").html($(data).html() + "<input type='checkbox' id='checkplease' onclick='toggleCheckbox(this)' value=" + "<g:message code='close.button.label'/>" + "/>");
关于jquery - 如何从jquery.html()函数中的属性文件获取值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18509573/