首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在jQuery中包含超链接

在jQuery中包含超链接
EN

Stack Overflow用户
提问于 2021-01-12 20:40:34
回答 1查看 32关注 0票数 0

如何在以下jQuery函数中包含“条款和条件”的超链接:

代码语言:javascript
运行
复制
 create: function () {
            var pane = $(this).dialog("widget").find(".ui-dialog-buttonpane")
            $("<label class='terms-conditions'><input id='terms-conditions' type='checkbox' onchange='dialogDisable()'/> " +
                "<strong><?= _("I hereby accept the terms and conditions and have read the privacy statement.") ?></strong></label>").prependTo(pane);
            $('#terms-conditions').css('position', 'center');
        },
EN

回答 1

Stack Overflow用户

发布于 2021-01-12 22:02:27

解决方案很简单,我不知道为什么它不能更早的工作。

代码语言:javascript
运行
复制
<strong><?= _("I hereby accept the <a href='#' target='_blank'><u>terms and conditions</u></a> and have read the privacy statement.") ?></strong>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65684177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档