gpt4 book ai didi

php - HTML 链接带有点 (.) 的 ID

转载 作者:搜寻专家 更新时间:2023-10-31 20:45:52 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How to select html nodes by ID with jquery when the id contains a dot?

我有一个 jquery modal,功能是显示配置文件框。

<a rel="Modal" href="#<?php echo $username; ?>">Profile</a>

如果用户名不使用 ID 点 (.) 到目前为止是可以的

<div id=<?php echo $username; ?>

当用户名使用 ID 点 (.) 时,问题就来了,例如 john.doe。盒子不能显示任何东西。

那么我该如何设置呢?

感谢您的帮助。

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