Open new page and execute javascript in the same href link
<p>I'm trying to make a link which will execute a function and open the page <code>#item-info</code> simultaneously but I'm having trouble. (I'm using JQuery which is why I have the #)</p>

<p>The part which is causing the problem seems to be the javascript function <code>updateItem(item, type, stock)</code></p>

<pre><code>&lt;?php       
for ($row = 0; $row &lt; $arrlength; $row++)
{
    echo "&lt;li&gt;";
    echo "&lt;a href='javascript:updateItem($items[$row]["Item"], $items[$row]["Type"], $items[$row]["Stock"]); #item-info'";   
    echo $items[$row]["Item"];
    echo "&lt;/a&gt;"; 
    echo "&lt;/li&gt;";
}
?&gt;
</code></pre>

<p>I think the problems arise with the quote usage but I'm not too sure what I'm doing wrong with them.</p>
