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/ 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
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/