如何在 Lotus Notes 中使用 javascript 选中/取消选中复选框
如何在 Lotus Notes 中使用 javascript 选中/取消选中复选框?
我尝试了很多不同的 javascript 代码,但没有一个起作用......
输入类型复选框位于名为 form1 的表单内......
谢谢
How to check/uncheck a checkbox with javascript in lotus notes?
I´ve tried a lot of different javascript codes but none worked....
the input type checkbox is insidea form called form1..
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Domino 生成的网页的源代码并确定复选框的名称。您正在寻找一个名为 type="checkbox" 的 HTML 标签。获取该复选框的 id 并使用该 id 替换下面代码的“”部分。
例如,如果复选框名为“mycheckbox”,则代码将为:
如果需要在选中和未选中之间切换复选框,则可以使用此代码,该代码只是将复选框设置为相反的状态。
View the source for the Web page produced by Domino and determine what the name of your checkbox is. You're looking for an HTML tag called with a type="checkbox". Get the id of that checkbox and use that id to replace the "" part of the code below.
For example, if the checkbox is named "mycheckbox", the code would be:
If you need to toggle the checkbox between checked and unchecked, you can use this code, which just sets the checkbox to the opposite state.