如何从jquery.html()函数中的属性文件中获取值 $(“#divid”).html($(data.html()+“value=”“);

如何从jquery.html()函数中的属性文件中获取值 $(“#divid”).html($(data.html()+“value=”“);,jquery,grails,gsp,Jquery,Grails,Gsp,我想从属性文件中获取复选框的值。我应该如何获取该值?如果要混合引号,请尝试以下操作: $("#divid").html($(data).html() + "<input type="checkbox" id="checkplease" onclick="toggleCheckbox(this)"/> value="<g:message code="property.value" />"); $(“#divid”).html($(data.html()+); $("#

我想从属性文件中获取复选框的值。我应该如何获取该值?

如果要混合引号,请尝试以下操作:

$("#divid").html($(data).html() + "<input type="checkbox" id="checkplease" onclick="toggleCheckbox(this)"/>  value="<g:message code="property.value" />");
$(“#divid”).html($(data.html()+);
$("#divid").html($(data).html() + "<input type='checkbox' id='checkplease' onclick='toggleCheckbox(this)' value=" + "<g:message code='close.button.label'/>" + "/>");