I have a grandfather window, through it I open a modal parent window and through this modal I open a second modal window child.
I'm trying to do a click with trigger ('clique')
in the grandfather window, but I'm not getting it, it only works if I put the click function in the modal window parent.
Can anyone help me?
Daughter modal window:
<script>
$(document).ready(function() {
$('.ok').click(function() {
var exec4 = $('.exec-zeraid-card');
exec4.trigger('click');
});
return false;
});
</script>
Window grandfather page:
<script>
$(document).ready(function() {
$('.exec-zeraid-card').click(function() {
$('#box').hide(0);
});
return false;
});
</script>