Is there a way to click an anchor tag inside another event. What I have here does not seem to work:
jsfiddle: http://jsfiddle.net/my7oxtL0/1/
JS:
$('.mybutton').click(function(){
//other stuff runs
$("#link1").click();
});
html:
<button class="mybutton">click me</button>
<a id="link1" href="http://www.google.com" target="_blank"></a>