动态复选框选择 [英] dynamic checkbox selection

查看:73
本文介绍了动态复选框选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上使用AJAX并通过XML返回一堆信息并创建一个复选框。如果XML返回该复选框应设置为true,请检查它,否则将其留空。下面是我浏览xml文档时的迭代。我也希望复选框在点击时调用一个函数,但我不能让它在IE和& Mozilla的。感谢您的帮助。

I''m basically using AJAX and returning a bunch of information through XML and creating a checkbox. If the the XML returns that the checkbox should be set to true, check it, otherwise leave it empty. Below is my iteration when i go through the xml document. also i''d like to have the checkbox call a function when clicked, but I can''t get it to work in both IE & Mozilla. Thanks for the help.

展开 | 选择 | Wrap | 行号

推荐答案


我基本上使用AJAX并通过XML返回一堆信息并创建一个复选框。如果XML返回该复选框应设置为true,请检查它,否则将其留空。下面是我浏览xml文档时的迭代。我也希望复选框在点击时调用一个函数,但我不能让它在IE和& Mozilla的。感谢您的帮助。

I''m basically using AJAX and returning a bunch of information through XML and creating a checkbox. If the the XML returns that the checkbox should be set to true, check it, otherwise leave it empty. Below is my iteration when i go through the xml document. also i''d like to have the checkbox call a function when clicked, but I can''t get it to work in both IE & Mozilla. Thanks for the help.

展开 | 选择 | Wrap | 行号



你有相当多的语法问题,但我解决了它们。这将跨浏览器工作:
You had quite a few syntax problems but I ironed them out. This will work cross-browser:
展开 | 选择 | Wrap | 行号



对不起我实际上已复制错了,但这有帮助。唯一的问题是...

sorry i actually copied the wrong thing, but this helps. only problem is when...

展开 | 选择 | Wrap | 行号


这篇关于动态复选框选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆