根据服务器的responseText中的输出动态创建复选框 [英] Dynamically create checkbox based on the output in the responseText from server
本文介绍了根据服务器的responseText中的输出动态创建复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里我有一个返回的数组,它在服务器的responseText中返回。根据服务器返回的输出,我必须动态创建一个复选框。
Hi,
Here I have an array returned that is returned in responseText from the server. Based on the output that is returned by the server I have to dynamically create a checkbox.
展开 | 选择 | Wrap | 行号
推荐答案
您可能没有将创建的元素附加到文档树中?
you probably didn''t append the created element to the document tree?
现在可以在单击按钮时创建一个复选框。我想检查是否有特定的复选框,如果点击另一个javascript函数必须引起,我无法弄清楚如何做到这一点......
now am able to create a checkbox if a button is clicked. I wanted to check whether that particular checkbox if clicked another javascript function has to be evoked, am not able to figure out how to do that...
类似
展开 | 选择 | Wrap | 行号
这篇关于根据服务器的responseText中的输出动态创建复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文