我们如何显示复选框中选中的文本框值?

发布于 2025-02-09 12:58:38 字数 57 浏览 1 评论 0原文

TextBox值=橙色,芒果,香蕉 它应按照在复选框中的检查显示 复选框✓橙色 ✓芒果 ✓香蕉 苹果

Textbox value= orange,mango, Banana
It should be displayed as checked in checkbox
Checkbox ✓ orange
✓ mango
✓ banana
Apple

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是伱的 2025-02-16 12:58:38

要使一个复选框出现,请检查您添加检查的属性。

<input type='checkbox' checked>

但是,对于有限的上下文,您很难确定您是否正在寻找。

如果您希望它仅查看,也可以添加禁用属性。

<input type='checkbox' checked disabled>

To make a checkbox appear checked you add the checked attribute.

<input type='checkbox' checked>

However with the limited context you have given its hard to tell for sure if this is what you are looking for.

you can also add the disabled attribute if you want it to be view only.

<input type='checkbox' checked disabled>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文