.click doesn't seem to be firing...why?
<p>I am attempting to get a link to fire JQuery's .click() function so that I can call another script behind the scenes. All of the JQuery is generated dynamically by PHP. </p>

<p>The code looks correct, but the .click is not firing.</p>

<p>This is the code that generates the jquery:</p>

<pre><code>            $jscript = "$(\"".$server ."Restart\").click(function()
            {
                $.get(\"modules/test.php\", {command: \"RESTART\", server: \"$server\"},
                    function(data){
                        alert(\"Data Sent: \" + data);
                    }
                );
            });
            ";
</code></pre>

<p>This is the code as it looks after generation (with just an alert right now because I can't get it to do anything):</p>

<pre><code>$("critRestart").click(function()
            {
                $.get("modules/test.php", {command: "RESTART", server: "crit"},
                    function(data){
                        alert("Data Sent: " + data);
                    }
                );
            });
</code></pre>

<p>This is the link that is clicked on that should be firing that event:
<code>&lt;div id="critRestart"&gt;&lt;a href="#"&gt;RESTART&lt;/a&gt;&lt;/div&gt;</code></p>

<p>Can anyone help?</p>
