Validate a hidden field for a specific word

Validate a hidden field for a specific word

I'm trying to validate a hidden text field for a specific word using equalTo, but it seems to be validating false. What's the right way to do this?

It works If i use two hidden fields and pass the value of one to another, but it wont work if I use only a word.

I've already set ignore: [], in the plugin

Can you please help me?

  1. <input type="hidden" name="aImg" value="true" class="aImg">
  2. $("#artcForm").validate({
  3.         rules: {
  4.             aImg: {
  5.                   required: true,
  6.                   equalTo: "true"
  7.             },
  8.         },