0
在下面的代码中,我将更改事件绑定到HTML选择,然后尝试设置其选定值。但是,是不是叫我选择HTML的价值我改变事件通过jQuery用下面的代码中进行选择:使用jquery选择HTML选择值时未调用HTML选择更改事件
row.find(".js-sAttribute").change(function()
{
alert('1');
});
//**the following should trigger change event binded in the above code**
row.find(".js-sAttribute").each(function() { this.selected = (this.text == sAttEnum.ProductID); });
请指教。
我看到冲突的代码。你能清理一下你的问题,以便更清楚一点吗? – Gregg 2011-04-26 06:10:26
gregg,更新的问题 – Amit 2011-04-26 06:12:12