YUI 数据表中的复选框
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
API 参考是否位于 http://developer.yahoo.com/yui /docs/YAHOO.widget.CheckboxCellEditor.html 有帮助吗?
Does the API reference at http://developer.yahoo.com/yui/docs/YAHOO.widget.CheckboxCellEditor.html help?
为了获取名称和值属性,您可以使用如下所示的复选框:
在服务器端代码中,您将在 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:
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
如果我使用雅虎的 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?.