title: JQuery validationEngine not working in WordPress page
body: <p>I have a rather complicated form in a file I've named newuser.php. I am using a WordPress plugin that allows in post/page php to include the file inside a WordPress page (I'm using the Suffusion theme). I am also trying to develop my own plugin (first time) and I am using that to enqueue all the necessary script and css files. I am loading my javascript files in the footer and jquery itself is being loaded in the header.</p>
  
  <p>As near as I can tell I have instantiated jquery.validationEngine correctly and given each form element the proper class. If I paste the "Personal Information" fieldset into an html doc with all the javascript, it works exactly how it's supposed to. However, inside the WordPress page absolutely nothing happens. I have spent the better part of two days trying to search for answers without success.</p>
  
  <p>The page can be viewed here: <a href="http://uniquelyyours.blogdns.com/test/?id=I17" rel="nofollow">http://uniquelyyours.blogdns.com/test/?id=I17</a> The ID reference is necessary for the form to work correctly. To test, use the radio button "My" and choose Grandfather as relation. Here is the code for the included php file with the form:</p>
  
  <pre><code>    &lt;?php
  $tng_folder = get_option('mbtng_path');
  chdir($tng_folder);
  include('begin.php');
  include_once($cms['tngpath'] . "genlib.php");
  include($cms['tngpath'] . "getlang.php");
  include($cms['tngpath'] . "{$mylanguage}/text.php");
  mbtng_db_connect() or exit;
  
  $id = $_GET['id'];
  //Check to make sure the variable has been passed correctly. If not, error message.
  if (!isset($_GET['id'])){
      echo "&lt;p style=\"color: #f00;\"&gt;&lt;b&gt;You can't register without showing your relationship in our tree ... Please go &lt;a href=\"".$_SERVER['HTTP_REFERER']."\"&gt;back and search for your relative first.&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;";
  }
  
  //Get the relevant row from the database
  $select = "SELECT * FROM tng_people WHERE personID='$id' ";
  $query = mysql_query($select);
  $f = mysql_fetch_array($query);
  $first = $f['firstname'];
  $last = $f['lastname'];
  $name = ($first.' '.$last) ;
  $readonly = "&lt;input type=\"text\" name=\"aname\" value=\"$name\" size=\"40\" maxlength=\"40\" readonly=\"readonly\"/&gt;";
  $read = "&lt;input type=\"text\" name=\"newid\" id=\"x\" value=\"$id\" readonly=\"readonly\"/&gt;";
  $url="http://".$_SERVER['HTTP_HOST']."/user-registration/success/?try=1";
  $relation = mysql_real_escape_string(stripslashes($_POST['relation']));
  $aname = mysql_real_escape_string(stripslashes($_POST['aname']));
  $personid = $_POST['newid'];
  
  //Grab the posted variables
  $whom = $_POST['whom'];
  //parents
  $father_firstname = mysql_real_escape_string(stripslashes($_POST['father_firstname']));
  $father_lastname = mysql_real_escape_string(stripslashes($_POST['father_lastname']));
  $father_birthdate = mysql_real_escape_string(stripslashes($_POST['father_birthdate']));
  $mother_firstname = mysql_real_escape_string(stripslashes($_POST['mother_firstname']));
  $mother_maidenname = mysql_real_escape_string(stripslashes($_POST['mother_maidenname']));
  $mother_birthdate = mysql_real_escape_string(stripslashes($_POST['mother_birthdate']));
  $parents_mar_date = mysql_real_escape_string(stripslashes($_POST['parents_mar_date']));
  //grandparents
  $grandfather_firstname = mysql_real_escape_string(stripslashes($_POST['grandfather_firstname']));
  $grandfather_lastname = mysql_real_escape_string(stripslashes($_POST['grandfather_lastname']));
  $grandfather_birthdate = mysql_real_escape_string(stripslashes($_POST['grandfather_birthdate']));
  $grandmother_firstname = mysql_real_escape_string(stripslashes($_POST['grandmother_firstname']));
  $grandmother_maidenname =mysql_real_escape_string(stripslashes( $_POST['grandmother_maidenname']));
  $grandmother_birthdate = mysql_real_escape_string(stripslashes($_POST['grandmother_birthdate']));
  $grandparents_mar_date = mysql_real_escape_string(stripslashes($_POST['grandparents_mar_date']));
  //great-grandparents
  $gr_grandfather_firstname = mysql_real_escape_string(stripslashes($_POST['gr_grandfather_firstname']));
  $gr_grandfather_lastname = mysql_real_escape_string(stripslashes($_POST['gr_grandfather_lastname']));
  $gr_grandfather_birthdate = mysql_real_escape_string(stripslashes($_POST['gr_grandfather_birthdate']));
  $gr_grandmother_firstname = mysql_real_escape_string(stripslashes($_POST['gr_grandmother_firstname']));
  $gr_grandmother_maidenname = mysql_real_escape_string(stripslashes($_POST['gr_grandmother_maidenname']));
  $gr_grandmother_birthdate = mysql_real_escape_string(stripslashes($_POST['gr_grandmother_birthdate']));
  $gr_grandparents_mar_date = mysql_real_escape_string(stripslashes($_POST['gr_grandparents_mar_date']));
  
  //Spouse
  $spouse_firstname = mysql_real_escape_string(stripslashes($_POST['spouse_firstname']));
  $spouse_lastname = mysql_real_escape_string(stripslashes($_POST['spouse_lastname']));
  $spouse_birthdate = mysql_real_escape_string(stripslashes($_POST['spouse_birthdate']));
  $spouse_birthplace = mysql_real_escape_string(stripslashes($_POST['spouse_birthplace']));
  $spouse_mar_date = mysql_real_escape_string(stripslashes($_POST['spouse_mar_date']));
  
  //self
  $first_name =  mysql_real_escape_string(stripslashes($_POST['first_name']));
  $last_name = mysql_real_escape_string(stripslashes($_POST['last_name']));
  $real_name = $_POST['first_name']." ".$_POST['last_name'];
  $birthdate = mysql_real_escape_string(stripslashes($_POST['birthdate']));
  $birthplace = mysql_real_escape_string(stripslashes($_POST['birthplace']));
  $telephone = mysql_real_escape_string(stripslashes($_POST['telephone']));
  $address = mysql_real_escape_string(stripslashes($_POST['address']));
  $city = mysql_real_escape_string(stripslashes($_POST['city']));
  $state_prov = mysql_real_escape_string(stripslashes($_POST['state_prov']));
  $postalcode = mysql_real_escape_string(stripslashes($_POST['postalcode']));
  $country = mysql_real_escape_string(stripslashes($_POST['country']));
  $user_url = mysql_real_escape_string(stripslashes($_POST['user_url']));
  $user_login = mysql_real_escape_string(stripslashes($_POST['user_login']));
  $user_email = mysql_real_escape_string(stripslashes($_POST['user_email']));
  $email = mysql_real_escape_string(stripslashes($_POST['email']));
  $user_pass = mysql_real_escape_string(stripslashes($_POST['user_pass']));
  $pass = md5($user_pass);
  $pass = mysql_real_escape_string(stripslashes($_POST['pass']));
  $notes = mysql_real_escape_string(stripslashes($_POST['notes']));
  
  //error message variables
  $oops = 'Uh Oh. You missed a few items! Please complete the following missing information:&lt;br /&gt;&lt;br /&gt;';
  $nofather_firstname = 'Please enter Father\'s first name.';
  $nofather_lastname = 'Please enter Father\'s last name.';
  $nofather_birthdate = 'Please enter Father\'s date of birth.';
  $nomother_firstname = 'Please enter Mother\'s first name.';
  $nomother_maidenname = 'Please enter Mother\'s maiden name.';
  $nomother_birthdate = 'Please enter Mother\'s date of birth.';
  $noparents_mar_date = 'What? Your parents never got married?';
  
  $nograndfather_firstname = 'Please enter Grandfather\'s first name.';
  $nograndfather_lastname = 'Please enter Grandfather\'s first name.';
  $nograndfather_birthdate = 'Please enter Grandfather\'s date of birth.';
  $nograndmother_firstname = 'Please enter Grandmother\'s first name.';
  $nograndmother_maidenname = 'Please enter Grandmother\'s maiden name.';
  $nograndmother_birthdate = 'Please enter Grandmother\'s date of birth.';
  $nograndparents_mar_date = 'No way your parent was illegitimate!!';
  
  $nogr_grandfather_firstname = 'Please enter Great Grandfather\'s first name.';
  $nogr_grandfather_lastname = 'Please enter Great Grandfather\'s first name.';
  $nogr_grandfather_birthdate = 'Please enter Great Grandfather\'s date of birth.';
  $nogr_grandmother_firstname = 'Please enter Great Grandmother\'s first name.';
  $nogr_grandmother_maidenname = 'Please enter Great Grandmother\'s maiden name.';
  $nogr_grandmother_birthdate = 'Please enter Great Grandmother\'s date of birth.';
  $nogr_grandparents_mar_date = 'Okay, I\'ll give you a pass on this one. But if you don\'t know, just put "unknown."';
  
  $nospouse_firstname = 'Please enter your Spouse\'s first name.';
  $nospouse_lastname = 'Please enter your Spouse\'s last name.';
  $nospouse_birthdate = 'Please enter your Spouse\'s birthdate.';
  $nospouse_birthplace = 'Please enter your Spouse\'s birthplace.';
  $nospouse_mar_date = 'Please enter the date you entered into wedded bliss.';
  
  $sendto_email = "heather@uniquelyyourshosting.com";
  $admin_mess = "Congratz TNG Admin !!! A new user joined your site !!!\n\n";
  
  //Parent Info Table
  $opt = '
  &lt;fieldset&gt;
      &lt;legend&gt;Parent\'s Information&lt;/legend&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "father_firstname"&gt;Father\'s First Name&lt;/label&gt;
              &lt;input type="text" id="father_firstname" class="validate[required]" name="father_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "father_lastname"&gt;Father\'s Last Name&lt;/label&gt;
              &lt;input type="text" id="father_lastname" class="validate[required]" name="father_lastname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "father_birthdate"&gt;Father\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="father_birthdate" class="validate[required]" name="father_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "mother_firstname"&gt;Mother\'s First Name&lt;/label&gt;
              &lt;input type="text" id="mother_firstname" class="validate[required]" name="mother_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "mother_maidenname"&gt;Mother\'s Maiden Name&lt;/label&gt;
              &lt;input type="text" id="mother_maidenname" class="validate[required]" name="mother_maidenname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "mother_birthdate"&gt;Mother\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="mother_birthdate" class="validate[required]" name="mother_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="3"&gt;
              &lt;label for="parents_mar_date"&gt;Marriage Date for this couple&lt;/label&gt;
              &lt;input type="text" id="parents_mar_date" class="validate[required]" name="parents_mar_date" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/fieldset&gt;
  ';
  
  //Add Grandparent Info
  $opta = '
  &lt;fieldset&gt;
      &lt;legend&gt;Grandparent\'s Information&lt;/legend&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;label for "grandfather_firstname"&gt;Grandfather\'s First Name&lt;/label&gt;
              &lt;input type="text" id="grandfather_firstname" class="validate[required]" name="grandfather_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "grandfather_lastname"&gt;Grandfather\'s Last Name&lt;/label&gt;
              &lt;input type="text" id="grandfather_lastname" class="validate[required]" name="grandfather_lastname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "grandfather_birthdate"&gt;Grandfather\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="grandfather_birthdate" class="validate[required]" name="grandfather_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "grandmother_firstname"&gt;Grandmother\'s First Name&lt;/label&gt;
              &lt;input type="text" id="grandmother_firstname" class="validate[required]" name="grandmother_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "grandmother_maidenname"&gt;Grandmother\'s Maiden Name&lt;/label&gt;
              &lt;input type="text" id="grandmother_maidenname" class="validate[required]" name="grandmother_maidenname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "grandmother_birthdate"&gt;Grandmother\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="grandmother_birthdate" class="validate[required]" name="grandmother_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="3"&gt;
              &lt;label for="grandparents_mar_date"&gt;Marriage Date for this couple&lt;/label&gt;
              &lt;input type="text" id="grandparenst_mar_date" class="validate[required]" name="grandparents_mar_date" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/fieldset&gt;
  ';
  
  //Add Great-Grandparent's Information
  $optb = '
  &lt;fieldset&gt;
      &lt;legend&gt;Great-Grandparent\'s Information&lt;/legend&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;label for "gr_grandfather_firstname"&gt;Great-Grandfather\'s First Name&lt;/label&gt;
              &lt;input type="text" id="gr_grandfather_firstname" class="validate[required]" name="gr_grandfather_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "gr_grandfather_lastname"&gt;Great-Grandfather\'s Last Name&lt;/label&gt;
              &lt;input type="text" id="gr_grandfather_lastname" class="validate[required]" name="gr_grandfather_lastname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "gr_grandfather_birthdate"&gt;Great-Grandfather\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="gr_grandfather_birthdate" class="validate[required]" name="gr_grandfather_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "gr_grandmother_firstname"&gt;Great-Grandmother\'s First Name&lt;/label&gt;
              &lt;input type="text" id="gr_grandmother_firstname" class="validate[required]" name="gr_grandmother_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "gr_grandmother_maidenname"&gt;Great-Grandmother\'s Maiden Name&lt;/label&gt;
              &lt;input type="text" id="gr_grandmother_maidenname" class="validate[required]" name="gr_grandmother_maidenname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "gr_grandmother_birthdate"&gt;Great-Grandmother\'s Date of Birth&lt;/label&gt;
              &lt;input type="text" id="gr_grandmother_birthdate" class="validate[required]" name="gr_grandmother_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="3"&gt;
              &lt;label for="gr_grandparents_mar_date"&gt;Marriage Date for this couple&lt;/label&gt;
              &lt;input type="text" id="gr_grandparenst_mar_date" class="validate[required]" name="gr_grandparenst_mar_date" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/fieldset&gt;
  ';
  ?&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $("#register").validationEngine();
      alert( $("#register").validationEngine('validate') );
     });
  &lt;/script&gt;
  &lt;form action="" enctype="multipart/form-data" method="post" id="register" name="register"&gt;
  &lt;fieldset&gt;
      &lt;legend&gt;How are you related to this person?&lt;/legend&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;span style="display: inline-block;"&gt;&lt;?php echo $read.$readonly; ?&gt;&lt;/span&gt;
              &amp;nbsp;
              &lt;span style="display: inline-block;"&gt;
              &lt;label style="display: inline-block;" for="whom"&gt;is&lt;/label&gt;
              &lt;input id="whom" type ="radio" name="whom" selected="selected" class="validate[required]" value="My" onclick="document.getElementById ('spouse').style.display = 'none';"&gt;My &amp;nbsp;
              &lt;input id="whom" type ="radio" class="validate[required]" name="whom" onclick="document.getElementById ('spouse').style.display = 'block';" value="Spouse"/&gt;My Spouse's
              &lt;/span&gt;
              &amp;nbsp;
              &lt;span style="display: inline-block;"&gt;
              &lt;select id="relation" name="relation" onchange="processAncestor();" class="validate[required]"&gt;
                  &lt;option value="Father"&gt;Father&lt;/option&gt;
                  &lt;option value="Mother"&gt;Mother&lt;/option&gt;
                  &lt;option value="Sister of Father"&gt;Sister of Father&lt;/option&gt;
                  &lt;option value="Sister of Mother"&gt;Sister of Mother&lt;/option&gt;
                  &lt;option value="Brother of Father"&gt;Brother of Father&lt;/option&gt;
                  &lt;option value="Brother of Mother"&gt;Brother of Mother&lt;/option&gt;
                  &lt;option value="Brother"&gt;Brother&lt;/option&gt;
                  &lt;option value="Sister"&gt;Sister&lt;/option&gt;
                  &lt;option value="Grandfather"&gt;Grandfather&lt;/option&gt;
                  &lt;option value="Grandmother"&gt;Grandmother&lt;/option&gt;
                  &lt;option value="Great Grandfather"&gt;Great Grandfather&lt;/option&gt;
                  &lt;option value="Great Grandmother"&gt;Great Grandmother&lt;/option&gt;
                  &lt;option value="2nd Great Grandfather"&gt;2nd Great Grandfather&lt;/option&gt;
                  &lt;option value="2nd Great Grandmother" &gt;2nd Great Grandmother&lt;/option&gt;
                  &lt;option value="Self"&gt;Self&lt;/option&gt;
                  &lt;option value="" selected="selected"&gt;Select a Relationship&lt;/option&gt;
              &lt;/select&gt;
              &lt;/span&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;p style="font-weight: bold;"&gt;If none of the available relationships properly describes your relationship to this person, you will need to email us directly to explain.&lt;/p&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;div id="opt"&gt;
  &lt;p&gt;Please complete the following information about your/your spouses' parents:&lt;/p&gt;
  &lt;p&gt;If you selected Myself above, we are looking for your parents information. If you selected My Spouse above, then we are looking for your spouse's parents. All Fields are Required. Dates should be in Day Month Year format as follows: 01 Jan 1900.&lt;/p&gt;
  &lt;?php echo $opt; ?&gt;
  &lt;/div&gt;
  
  &lt;div id="opta"&gt;
  &lt;p&gt;Please complete the following information about your/your spouses' grandparents:&lt;/p&gt;
  &lt;?php echo $opta; ?&gt;
  &lt;/div&gt;
  
  &lt;div id="optb"&gt;
  &lt;p&gt;Please complete the following information about your/your spouses' great-grandparents:&lt;/p&gt;
  &lt;?php echo $optb; ?&gt;
  &lt;/div&gt;
  
  &lt;div id="spouse"&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;p&gt;Please complete the following information about your spouse:&lt;/p&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "spouse_firstname"&gt;Spouse Name&lt;/label&gt;
              &lt;input type="text" id="spouse_firstname" class="validate[required] text-input" name="spouse_firstname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "spouse_lastname"&gt;Spouse Surname&lt;/label&gt;
              &lt;input type="text" id="spouse_lastname" class="validate[required]" name="spouse_lastname" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "spouse_birthdate"&gt;Spouse Date of Birth&lt;/label&gt;
              &lt;input type="text" id="spouse_birthdate" class="validate[required]" name="spouse_birthdate" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for "spouse_birthplace"&gt;Spouse Location Of Birth&lt;/label&gt;
              &lt;input type="text" id="spouse_birthplace" class="validate[required]" name="spouse_birthplace" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label for "md"&gt;Your Marriage Date&lt;/label&gt;
              &lt;input type="text" id="spouse_mar_date" class="validate[required]" name="spouse_mar_date" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;fieldset&gt;
      &lt;legend&gt;Your Information&lt;/legend&gt;
  &lt;div id="self"&gt;
  &lt;p&gt;Please complete the following information about yourself for the User Registration:
  &lt;br /&gt;An &lt;strong&gt;*&lt;/strong&gt; indicates a &lt;strong&gt;Required&lt;/strong&gt; field.&lt;/p&gt;
  
  &lt;table style="width: 100%;"&gt;
      &lt;tr&gt;
          &lt;td width="20%"&gt;
              &lt;label for="first_name"&gt;First Name*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td width="20%"&gt;
              &lt;input type="text" id="first_name" class="validate[required] text-input" name="first_name" /&gt;
          &lt;/td&gt;
          &lt;td width="60%"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="last_name"&gt;Last Name*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="last_name" class="validate[required] text-input" name="last_name" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="birthdate"&gt;Date of birth*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="birthdate" class="validate[required] text-input" name="birthdate" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="birthplace"&gt;Location of birth&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="birthplace" name="birthplace" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="telephone"&gt;Phone Number*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="text" id="telephone" class="validate[required]" name="telephone" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="address"&gt;Address*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" class="validate[required]" name="address" id="address" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="city"&gt;City*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="city" class="validate[required]" name="city" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="state_prov"&gt;State/Province*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="state_prov" class="validate[required]" name="state_prov" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="postalcode"&gt;Postal Code*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="postalcode" class="validate[required]" name="postalcode" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="country"&gt;Country*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" id="country" class="validate[required]" name="country" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="user_url"&gt;Your Website&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" name="user_url" id="user_url" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="user"&gt;Login Name*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" class="validate[required]" name="user_login" id="user_login" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              Usernames cannot begin with a number and should not contain any punctuation characters (no . , : ; ' " ! \ / [ ] { } + - )
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="user_email"&gt;Email Address*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="text" class="validate[required]" name="user_email" id="user_email" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              Please make sure you are not blocking mail from the this domain to ensure email from us does not end up in a spam or junk folder.
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="email"&gt;Email Again*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="Text" class="validate[required]" name="email" id="email" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="user_pass"&gt;Password*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="password" class="validate[required]" name="user_pass" id="user_pass" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              Passwords should be at least 7 characters and include at least one Upper case letter, one lower case letter and one number/symbol.
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="pass"&gt;Password Again*&lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="password" class="validate[required]" name="pass" id="pass" /&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;label for="notes"&gt;Notes:&lt;/p&gt;
  &lt;textarea cols="75" rows="5" name="notes" id="notes"&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;br /&gt;
  &lt;input type="submit" value="Submit User Registration" name="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The custom javascript for the relation select field is here:</p>
  
  <pre><code>    function processAncestor() {
      if (document.getElementById("relation").selectedIndex == 0) {//father
          document.getElementById('opt').style.display = 'none';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 1) {//mother
          document.getElementById('opt').style.display = 'none';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 2) {//sister of father
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 3) {//sister of mother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 4) {//brother of father
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 5) {//brother of mother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 6) {//brother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 7) {//sister
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 8) {//grandfather
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 9) {//grandmother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 10) {//great-grandfather
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'block';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 11) {//great-grandmother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'block';
          document.getElementById('optb').style.display = 'none';
      }
      if (document.getElementById("relation").selectedIndex == 12) {//2gr-grandfather
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'block';
          document.getElementById('optb').style.display = 'block';
      }
      if (document.getElementById("relation").selectedIndex == 13) {//2gr-grandmother
          document.getElementById('opt').style.display = 'block';
          document.getElementById('opta').style.display = 'block';
          document.getElementById('optb').style.display = 'block';
      }
      if (document.getElementById("relation").selectedIndex == 14) {//self
          document.getElementById('opt').style.display = 'none';
          document.getElementById('opta').style.display = 'none';
          document.getElementById('optb').style.display = 'none';
      }
  };
  </code></pre>
  
  <p>I would really appreciate help in figuring out why I can't get the validation script to function properly with this form in the Suffusion page. I suspect there is a JQuery/Javascript conflict somewhere but I am such a noob I tend to break things a lot! I also welcome any chance to learn from my breakages! Thanks!</p>