javascript jquery errors unable to resolve
<p>I've been getting some errors with my javascrript and i can't figure out
what is wrong. I just made a simple jQuery statement to check if an email field
had a default value and if so, clear the field</p>

<p>Here is the jsFiddle link to the code i am working with: <a href="http://jsfiddle.net/qLfBH/" rel="nofollow">http://jsfiddle.net/qLfBH/</a>
I can't figure out why the jslint is complaining about the line 5 "missing semicolon" and such.</p>

<pre><code>$(document).ready(function () {
    var email_default = "Enter your email address...";

    $(':input').filter('[type="email"]').attr('val', email_default).focus({
    if ($(this).val() == email_default) ;{
        $(this).attr('val', ' ');
    }
    });
});
</code></pre>

<p>I have also tried using firebug to debug, but the javascript would not show in the scripts panel- probably because of some syntax error. Any help would be much appreciated.</p>

<p><strong>UPDATE</strong></p>

<p>I edited the code but its still complaining about a "missing semicolon" (see link to fiddle <a href="http://jsfiddle.net/qLfBH/3/" rel="nofollow">http://jsfiddle.net/qLfBH/3/</a>)  </p>

<pre><code>$(document).ready(function () {
var email_default = "Enter your email address...";

$(':input').filter('[type="email"]').attr('value', email_default).focus({
    if ($(this).val() == email_default) {
        $(this).attr('val', ' ');
    }

});
});
</code></pre>

<p><strong>FIXED</strong></p>

<p>Ok thanks for the help everyone. I forgot the "function" under the focus. I corrected the errors below and its working :)</p>

<pre><code>$(document).ready(function () {
var email_default = "Enter your email address...";

$(':input').filter('[type="email"]').attr('value', email_default).focus(function () {
    if ($(this).val() == email_default) {
        $(this).attr('val', ' ');
    }
});
});
</code></pre>
