Error in JavaScript when inplementing input field shadow
<p>I want to implement shadow into input field. This is the JavaScript code that I use:</p>

<pre><code>&lt;!-- input field shadow  --&gt;
            var placeholder = "test field"
            $("input").on({
                focus: function() {
                    if (this.value == placeholder) {
                        $(this).val("").removeClass("shadow");
                    }
                },
                blur: function() {
                    if (this.value == "") {
                        $(this).val(placeholder).addClass("shadow");
                    }
                }
            }).trigger("blur");​    
</code></pre>

<p>When I run the code into Firefox I get this error message into Firebug:</p>

<pre><code>illegal character }).trigger("blur");
</code></pre>

<p>Maybe there is a bug into the code? How I can fix it?</p>

<p>Best Wishes</p>
