开发者

Event fire in firefox

开发者 https://www.devze.com 2023-03-22 11:43 出处:网络
I am using a piece of code in JavaScript as: if (td_sel.addEventListener) { //alert(\'event listener\');

I am using a piece of code in JavaScript as:

if (td_sel.addEventListener) {
    //alert('event listener');
    td_sel.addEventListener("click" , function() { DeleteR开发者_Go百科ow(selected_val) }, false);
}

where td_sel is the td element created dynamically.

This is not working in Firefox. Any suggestions?


Everything looks fine. The only thing is that maybe DeleteRow function is in other scope then posted code.

0

精彩评论

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