I need to hide
a div
which is on an iframe
on iframes child click.
<a href="#" class="share">Share +</a>
-> this is the child I want to do some functions on click.
I used this answers JQuery code but it doesn't seem to work.
HTML
<iframe id="map_frame" frameborder="0" src="http://a.tiles.mapbox.com/v3/vucko.map-1p4ens5h.html#17/45.80611110816038/15.924351969962727"></iframe>
<div>on "share +" click this div must hide so the share box goes above the div</div>
JQuery
$('#map_frame').contents().find('.share').click(function() {
alert('click');
});
How to achieve this ?