Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49171

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

$
0
0

@gbas wrote:

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

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>