javascript - "this.parentNode.parentNode" is undefined in firefox but works in other browsers -
in code below, alert
shows correct data-table value in google chrome undefined in mozilla firefox - there missing?
<td> <a onclick="add_data_event(this.parentnode.parentnode, '<?=$result['g_id'];?>')" class="btn btn-primary" data-toggle="modal" data-target="#addremindermodel-editclick"> <i class="fa fa-edit"></i> </a> </td> <script> function add_data_event(index, ser) { alert('i in script'); alert(index.cells[1].innertext); } </script>
Comments
Post a Comment