How to trigger the same action as an <a> tag click from controller in ionic?

I m using a widget called tabbedSlideBox and my view looks like this

image

By pressing each icon with my finger it triggers a series of events e.g change slide,make tab active etc. How can I imitate this action from my controller ? Every icon is in form of :

<a href="javascript:;" id="action1-tab">Action 1</a>

I tried to get element with JavaScript and then trigger click but nothing happens

var a=document.getElementById("#action1-tab");
a.click();

Any ideas?