gpt4 book ai didi

jquery - 如何从jquery.html()函数中的属性文件获取值

转载 作者:行者123 更新时间:2023-12-02 14:53:06 24 4
gpt4 key购买 nike

$("#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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com