update div value - JQuery Toastmessage-plugin
<p>i have a php page that redirects (if successful) to another php page like this:</p>

<pre><code>header('Location: completed.php?message=Successful operation. Data inserted for user: ' . $login-&gt;get_username() . ' . See home page for infos.');
</code></pre>

<p>Now in completed.php i have a div that echoes the received message:</p>

<pre><code>&lt;div id="msg"&gt;
&lt;?php echo $_GET['message']; ?&gt;
&lt;/div&gt;
</code></pre>

<p>I'm using the 'Toastmessage-plugin' : <a href="http://akquinet.github.com/jquery-toastmessage-plugin/" rel="nofollow">here..</a> , but i'm unable to display the $_GET in to the text of Toastmessage ..
I'm using this code : </p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script src="js/jquery.toastmessage.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="styles/jquery.toastmessage.css" rel="stylesheet" type="text/css" /&gt;

...

&lt;script type="text/javascript"&gt;
function showStickyNoticeToast() {
        $().toastmessage('showToast', {
            text: $('#msg').val(),
            sticky: true,
            position: 'bottom-left',
            type: 'notice',
            closeText: '',
            close: function () { console.log("toast is closed ..."); }
        });
    }
&lt;/script&gt;
</code></pre>

<p>I've searched a lot , also for DOM Events and other events but i don't know what step take... maybe when the JQ function is loaded the div 'msg' has not yet received GET data ...? so how i update his value ?</p>

<p>The page i've read :
<a href="http://stackoverflow.com/questions/4950199/jquery-how-can-i-detect-if-the-html-has-changed-within-a-given-element">this</a> and <a href="http://stackoverflow.com/questions/628508/how-to-update-div-when-on-select-change-in-jquery">this</a>.
I also tried with ajax but i'm less experienced in that language..</p>

<p>please help... :)  Thanks </p>

<p>EDIT @charlietfl </p>

<p>Ajax :  i've made a lot of tries... i can't find the code anymore!
Basically i call a php file with this code (take this as pseudocode):</p>

<pre><code>&lt;script type="text/javascript&gt;
&lt;!--
$('#choose').change(function(event) {
    $.get('messages.php', { selected: $('#msg').val() },
        function(data) {
            $('#update').html(data);   // other div wher store data
        }
    );            
}); 
&lt;/script&gt;
</code></pre>

<p>....</p>

<pre><code>&lt;?php

$alfa = isset($_GET['message']) ? $_GET['message'] : 'nothing';
echo $alfa;
?&gt;
</code></pre>
