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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -