title: jquery validation plugin custom rule check for a word
body: <p>I need to create a custom rule for the Jquery Validation Plugin that checks for one specific word. </p>
  
  <p>In this case, the user must answer a question correctly by entering the word "cat" into the input field. The custom rule would need to define the answer as "cat", I was thinking as a variable, and then check for it.</p>
  
  <p>My failed attempt:</p>
  
  <pre><code>jQuery.validator.addMethod("answercheck", function(value, element) { 
    var password = string('hot');
    return value(password); 
  }, "Type the correct answer");
  </code></pre>
  
  <p>and the setup:</p>
  
  <pre><code>rules: {
      input_answer{
          required: true,
          answercheck: true
      }
  
  messages: {
      input_answer{
          required: "Answer the question",
          answercheck: "Your answer is incorrect"
      }
  </code></pre>
  
  <p>Any ideas?</p>