I hope the title means something, I don't really know how to explain what I am trying to do in a few words.
I think better with an example.
I have a click event to display an enquiry form on a contact page:
$("#enquiry-form").hide();
$('.enquiry-form').click(function() {
$(this).hide();
$('#enquiry-form').fadeIn( 'slow', function() {
$('#senderName').focus();
} )
});
All fine.
Now if a user clicks on the following link
<a href="contact-united-diesel.php?part_number=<?php echo $row['parts_number']; ?>"><input type="button" class="rounded-buttons" name="enquire" value="Enquire" /></a>
I want them to be taken to the contact page and display the Enquiry Form.
I want to know if it is possible (and if so, how) to trigger the click event that displays the enquiry form on the contact page if the page is accessed via the above link?