I want to pass the click action from a#click1 to a#click2. If I click a#click1, then the link http://www.google.com should be opened. How to do that?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$('a#click1').click(function() {
$('a#click2').click();
});
});
</script>
<div id="wrap1">
<div id="content1">
<a id="click1" href="">click</a>
</div>
</div>
<div id="wrap2">
<div id="content2">
<a id="click2" href="http://www.google.com">click</a>
</div>
</div>