use jquery to display iframe from href click event

use jquery to display iframe from href click event

I have a form that displays data in a table.  Currently each line of the table contains an href statement that takes to user to a new form:  echo '<td ><a href="newparse.php?EmailID='.$row->EmailID.'">'.$row->EmailFileName.'</a></td>';
This works fine, but what would be better is to display the newparse.php form on the same page when the user click the href.  I understand I can use an IFrame to display the form inside my form.  The question I have is how do you code the href to show the newparse.php form in the iFrame, but not go to actual page newparse.php when you click on the href?  Assuming I can show newparse.php in the iFrame how could I capture the href click event in jquery to show and hide the iFrame?

Thanks,
Tom
    • Topic Participants

    • tcl4p