YUI 数据表中的复选框

发布于 2024-07-07 14:31:56 字数 93 浏览 6 评论 0原文

我在 YUI DataTable 中使用一列复选框,工作得很好。 但我还没有找到一种方法来放置名称和值属性,以便我可以在提交表单时使用。

提前致谢。

I'm using a column of checkboxes in a YUI DataTable, I works fine. But I haven't found a way to put a name and value attribute so I can use when the form is submitted.

Thanks in advance.

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

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

发布评论

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

评论(3

我还不会笑 2024-07-14 14:31:56

为了获取名称和值属性,您可以使用如下所示的复选框:

<input type="checkbox" name="the_name" value="the_value" />

在服务器端代码中,您将在 POST 或 GET 数据中查找复选框的名称。 如果存在,则该复选框已被选中。 如果不存在,则该复选框未被选中。

http://www.w3schools.com/HTMLDOM/dom_obj_checkbox.asp

In order to get a name and value attribute, you use a checkbox like this:

<input type="checkbox" name="the_name" value="the_value" />

In your server-side code, you would look into the POST or GET data for the name of the checkbox. If it is there, the checkbox was checked. If it isn't there, the checkbox was not checked.

http://www.w3schools.com/HTMLDOM/dom_obj_checkbox.asp

滥情稳全场 2024-07-14 14:31:56

如果我使用雅虎的 YUI,我如何为复选框添加属性。 通常我可以使用“document.getElementById(obeto).checked”,但使用 YUI 不起作用?

How I reed a attribute for a checkbox, if I use YUI of Yahoo. Normaly I can use "document.getElementById(objeto).checked" but with YUI not work?.

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