Div onclick event not called in Mozilla

后端 未结 6 1089
予麋鹿
予麋鹿 2021-01-23 04:29

I have this in my code:

Title
6条回答
  •  灰色年华
    2021-01-23 05:02

    Try passing a reference to the element to the function.

     ... onclick="goToEdit(this);">
    

    and

    function goToEdit(element)
        {
           tree.selectItem($(element).attr('id'));
           btnMyButton_onclick();
        }
    

    edit: http://jsfiddle.net/SwUuE/4/

提交回复
热议问题