Change javascript code to this:
$(function(){
$('.parent-class h3').click(function(){
$(this).siblings('p').find('a')[0].click();
});
});
jQuery trigger will not work because the click event is not bound to the element, it is a javascript click function that mimics the actual click like a mouse!
source
share