English 中文(简体)
j Query Click activity on Object supplemented with the Java not working
原标题:jQuery Click event on object added with JavaScript not working

我在为学校做一个静.的工作,但我已陷入一个问题。 我在帮助下,为习俗无线电台提供 Java本图书馆。 文字掩盖了投入的吨数,而是增加了习惯风格spans

Desired behaviour, when I click one a span (added with JavaScript) I want to remove disabled attribute from my "Next Question"-button which when pressed takes you to the next question. I don t want users to accidentally proceed to the next question, without choosing an answer. The problem is when I press the added spans nothing happens, but when I press another identical span which I have added in the HTML it works just as intended.

The span got the category Radio, which I m do a look up with jQuery.

短短时间:用文件前面的Java文本添加的长度开展工作。

最佳回答

http://api.jquery.com/live/rel=“nofollow noreferer”>。 你会做这样的事情:

$(".radio").live("click", function() {
    // Enable the button here
});

您的另一种选择是,如果你把1.4.2英镑列入你的网页,则使用新的。 然而,类似的辛迪加只是在其要求儿童参加的活动时使用的扫描器,我认为这在大页上的影响要小得多。 (在你的情况下不适用,但总是使用最佳工具。)

$("element_containing_radio_buttons").delegate(".radio" "click", function() {
   // Enable the button here
});
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签