2011-04-13 92 views
0

我有以下代码jQuery的 - 和运营商

jQuery(".opsection input").live('change', function(){ 

我想怎么也做的就是添加一个“或”操作,使其运行在一个“变”功能也当有人“点击”文本字段

任何帮助将是盛大的。

回答

4

你做这样的

jQuery(".opsection input").live('change click', function(){ 

这将在任的改变运行功能或点击事件。

from the jquery docs

+0

完美.....非常感谢为 – BigJobbies 2011-04-13 03:29:40

+0

高兴能帮上忙 – jondavidjohn 2011-04-13 03:33:06