gpt4 book ai didi

wordpress - 联系表 7 占位符中的 SUP 数字?

转载 作者:行者123 更新时间:2023-12-02 22:47:55 25 4
gpt4 key购买 nike

我想显示一个数字上标,例如 <sup> 2 <sup>在联系表 7 占位符中。但我刚刚发现您显然不能在 CF7 元素中使用 HTML 标签。我是这样计划的:

[text your-size placeholder "area in m <sup> 2 </ sup> approx."]

最佳答案

联系表单 7 不允许在占位符中使用 HTML。因此,我们可以使用 jQueryUnicode 来做到这一点。在您的 js 文件中添加以下代码。

jQuery(document).ready(function($){

$( '#FormID #area' ).attr( 'placeholder', "area in m\u00B2 approx.");
// here #FormID is the ID of form and #area is id of your text field.

});

关于wordpress - 联系表 7 占位符中的 SUP 数字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58256515/

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