jquery code for replacing words
<p>I met some trouble with my code,</p>

<p>In fact I would like to replace words abreviation by their expressions, but it does not work.</p>

<p>I have done the following code:</p>

<pre><code>&lt;script&gt;
    $('#suivi').keyup(function (e) {
        var code = e.which ? e.which : e.keyCode;
        var input = this.value;
        console.log(input);
        &lt;?php
            $rqt = "SELECT * FROM `glossaire` WHERE `id_company` ='".$societe['id']."'";
            $result = mysql_query($rqt);
            while ($data = mysql_fetch_assoc($result)) {
        ?&gt;
                if (input == "&lt;?php echo ($data['libelle']) ; ?&gt;") {
                    this.value = "&lt;?php echo ($data['texte']) ; ?&gt;"
                };
        &lt;?php
            }
        ?&gt;      
   });
&lt;/script&gt;
</code></pre>

<p>jquery 1.8 is set up on my page.</p>

<p>This script works fine on the following jsfiddle: </p>

<p><a href="http://jsfiddle.net/3z3sP/1/" rel="nofollow">http://jsfiddle.net/3z3sP/1/</a></p>

<p>But not in my page. However it is the same.</p>

<p>I have no mistakes in the console of javascript.</p>

<p>Any kind of help will be much appreciated.</p>

<p>Kind regards.</p>

<p>SP.</p>
