div content to function arg
<p>I'm quite new to jquery...
I'm working with ToastMessge plugin (<a href="http://akquinet.github.com/jquery-toastmessage-plugin/" rel="nofollow">demo and download here</a>)..</p>

<p>I'd like to pass name of Toastmessage function by reference to another function's argument
but the following doesn't work : </p>

<pre><code>$(document).ready(function() {
        function switchMsgType(fref) 
            {
             var fname = null;  
             fref(fname);
            }
            var alfa = $("#msgtype").html();

            switchMsgType(alfa);
         });
</code></pre>

<p>html:</p>

<pre><code>&lt;body&gt;

    &lt;div id="msgtype"&gt;&lt;?php echo $_GET['msgtype']; ?&gt;&lt;/div&gt;
    &lt;div id="msg"&gt;bla bla ....&lt;/div&gt;  &lt;!-- txt of the message --&gt;
    ...
</code></pre>

<p>The only working version that i have is this :</p>

<pre><code>...
switchMsgType(showStickySuccessToast);
... 
</code></pre>

<p>but i must have sonething in the page to keep my PHP $_GET msgtype.... so i can switch
from 'Warning' to 'Success', etc...
I already tried with : </p>

<pre><code>$.trim($("#msgtype").text());  or...    $.trim($("#msgtype").html());
</code></pre>

<p>and others.. but nothing...  Thanks in advance... :)</p>
