title: is this correct syntax in jquery/javascript?
body: <p>In the jquery below should there be a closing paretheses ")" before the "dot" in:</p>
  
  <p>"<code>.test($</code> ..."? </p>
  
  <p><code>(/^\s*$/.test($(this).val()))</code></p>
  
  <pre><code>$(document).ready(function () {
      $('#userlogin').css('color', '#cccccc').val('LOGINNAME');   
  
      $('#userlogin').blur(function () {
          if (/^\s*$/.test($(this).val())) {
              $(this).val('LOGINNAME');
              $(this).css('color', '#cccccc');
              $(this).valid();
          }
      }).focus(function () {
          if ($(this).val() === 'LOGINNAME') {
              $(this).val('');
              $(this).css('color', '#000000');
          }
      });
  </code></pre>
  
  <p>If not, why not? That code looks a little weird to me.  </p>