EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arma on October 15, 2013, 05:02:56 PM



Title: Trigger on Click in Tree
Post by: arma on October 15, 2013, 05:02:56 PM
I have a search functionality in tree, when a node found, i want to trigger onClick event. How to trigger it elegantly ?

My current workaround is by finding div which has click event. It's attribute node-id.

Code:
treeContainer.find('div[node-id=' + node.id + ']').trigger('click');

I'm thinking something like tree('trigger','click', nodetarget);