Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$("#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'/>" + "/>");