Passing javascript variable to PHP function
<p>I have this javascript code </p>

<pre><code>&lt;Script&gt;
    function getGroupId(){
        var group=document.getElementById("selectedOptions").value;
        var groupFirstLetter=group.substring(2);

    }
&lt;/Script&gt;
</code></pre>

<p>I need to pass the <code>groupFirstLetter</code> to a PHP function which will count how many users in this group and return the value to the javascript function.</p>

<p>Any ideas please?</p>

<p>Thanks,</p>
