Event fire in firefox
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.
精彩评论