gpt4 book ai didi

php - 在表单的隐藏字段中存储方法

转载 作者:行者123 更新时间:2023-11-30 18:02:00 24 4
gpt4 key购买 nike

这确实是一个非常简单的问题,但无论如何:

为什么以下不起作用?

echo '<input type="hidden" name="value" value="return $(\"#compare_bd\").mergely(\"get\", rhs)">';

它返回:return $(//

谢谢!

最佳答案

你不能重写它吗:

PHP 页面:

echo '<input type="hidden" name="value" id="someField" value="">';

jQuery:

$(document).ready(function(){
$('#someField').val($("#compare_bd").mergely("get", rhs));
});

关于php - 在表单的隐藏字段中存储方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16736975/

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