开发者

jquery select live onchange

开发者 https://www.devze.com 2022-12-25 07:48 出处:网络
I\'m adding a select box to a form by cloning the current table row, and then doing currentRow.after(newRow);

I'm adding a select box to a form by cloning the current table row, and then doing

currentRow.after(newRow);

Q: Using the .live method, how do I test to see开发者_JAVA技巧 when the new select option has changed?


$('table select').live('change',function(){
    var select = $(this);
    var newVal = select.val();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消