jQuery Click how to?
<p>I have a newsletter I am sending and when a certain link is clicked I want it to show information not shown on the page by default. I am doing this by having the URL check for URL parameters but I am doing something wrong as it does not work. Can someone help me please since I am not very good at javascript.</p>

<p>Here is my code: </p>

<pre><code>&lt;p class="textcenter"&gt;&lt;a id="click" href="javascript:showPhotoInfo();"&gt;Photo Info
&lt;/a&gt;&lt;/p&gt;
&lt;div id="PhotoInfo" class="hide"&gt;
&lt;p&gt;Info Here...&lt;/p&gt;
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
var $j = jQuery.noConflict();
$j(document).ready(function() {
var url = window.location.href;
url = url.toLowerCase();
if (url.indexOf('?photoinfo=1') != -1 || url.indexOf('&amp;photoinfo=1') != -1) {
    $j("#click").click();
}
});
function showPhotoInfo() {
        document.getElementById('PhotoInfo').style.display='block';
    }
&lt;/script&gt;
</code></pre>

<p>I have also tried this: </p>

<pre><code>&lt;script type="text/javascript"&gt;
var $j = jQuery.noConflict();
$j(document).ready(function() {
var url = window.location.href;
url = url.toLowerCase();
if (url.indexOf('?photoinfo=1') != -1 || url.indexOf('&amp;photoinfo=1') != -1) {
        function showPhotoInfo() {
        document.getElementById('PhotoInfo').style.display='block';
    }
}
});
function showPhotoInfo() {
        document.getElementById('PhotoInfo').style.display='block';
    }
&lt;/script&gt;
</code></pre>

<p>If a person clicks the link on the page it shows correctly. I need the URL parameter to be checked then click the link to display the needed information. </p>
