Jquery change function not working in html form
<pre><code>&lt;script&gt;
$(document).ready(function(){             
$("#agegrade").change(function () {                   
var str = "";                   
$("select option:selected").each(function () {               
str = $(this).text();               
if(str == "1900-1903")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1904-1907")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1908-1911")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1912-1915")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1916-1919")                  
str = "EGBE NA UGO";
else if(str == "1920-1923")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1924-1927")                  
str = "IGWEBUIKE";               
else if(str == "1928-1931")                  
str = "ANYILIGWE";
else if(str == "1932-1935")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1936-1939")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1940-1943")                  
str = "UCHE BU UKO";
else if(str == "1944-1947")                  
str = "NAME TO BE PROVIDED";               
else if(str == "1948-1951")                  
str = "OFU OBI";               
else if(str == "1952-1955")                  
str = "ANULIKA";
else if(str == "1956-1959")                  
str = "IFUNANYA";               
else if(str == "1960-1963")                  
str = "NWANNEKA";               
else if(str == "1964-1967")                  
str = "NAME TO BE PROVIDED";
else if(str == "1968-1971")                  
str = "YET TO BE GROUPED";               
else if(str == "1972-1975")                  
str = "YET TO BE GROUPED";               
else if(str == "1976-1979")                  
str = "YET TO BE GROUPED";
else if(str == "1980-1983")                  
str = "YET TO BE GROUPED";               
else if(str == "1984-1987")                  
str = "YET TO BE GROUPED";               
else if(str == "1988-1991")                  
str = "YET TO BE GROUPED";
else if(str == "1992-1995")                  
str = "YET TO BE GROUPED";               
else if(str == "1996-1999")                  
str = "YET TO BE GROUPED";
else if(str == "2000-2003")                  
str = "YET TO BE GROUPED";                              
else
str = "Please Select An Item";
                       });                   
$("#adiv").text(str);
 })                 
 .change();         
 });
 &lt;/script&gt; 
&lt;select id="agegrade" name="agegrade" multiple="multiple"&gt;          
&lt;option  selected="selected"&gt;1900-1903&lt;/option&gt;
&lt;option&gt;1904-1907&lt;/option&gt;
&lt;option&gt;1908-1911&lt;/option&gt;
&lt;option&gt;1912-1915&lt;/option&gt;
&lt;option&gt;1916-1919&lt;/option&gt;
&lt;option&gt;1920-1923&lt;/option&gt;
&lt;option&gt;1924-1927&lt;/option&gt;
&lt;option&gt;1928-1931&lt;/option&gt;
&lt;option&gt;1932-1935&lt;/option&gt;
&lt;option&gt;1936-1939&lt;/option&gt;
&lt;option&gt;1940-1943&lt;/option&gt;
&lt;option&gt;1944-1947&lt;/option&gt;
&lt;option&gt;1948-1951&lt;/option&gt;
&lt;option&gt;1952-1955&lt;/option&gt;
&lt;option&gt;1956-1959&lt;/option&gt;
&lt;option&gt;1960-1963&lt;/option&gt;
&lt;option&gt;1964-1967&lt;/option&gt;
&lt;option&gt;1968-1971&lt;/option&gt;
&lt;option&gt;1972-1975&lt;/option&gt;
&lt;option&gt;1976-1979&lt;/option&gt;
&lt;option&gt;1980-1983&lt;/option&gt;
&lt;option&gt;1984-1987&lt;/option&gt;
&lt;option&gt;1988-1991&lt;/option&gt;
&lt;option&gt;1992-1995&lt;/option&gt;
&lt;option&gt;1996-1999&lt;/option&gt;
&lt;option&gt;2000-2003&lt;/option&gt;
&lt;/select&gt;
&lt;div id="adiv"&gt;&lt;/div&gt;
</code></pre>

<p>The above code works, but when I try to include it on the form (registration form) where I want to apply it, it doesn't work. What could be the cause? Please help me fix this. Below is the code. Also, the date function doesn't work.</p>

<pre><code>&lt;table width="815" height="1000" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr align="left"&gt;
    &lt;form action="&lt;?php echo $editFormAction; ?&gt;" id="form1" name="form1" method="POST"&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Registration Page&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Title: &lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;select name="title" id="title"&gt;
&lt;option value="Mr."&gt;Mr.&lt;/option&gt;
&lt;option value="Mrs."&gt;Mrs.&lt;/option&gt;
&lt;option value="Dr."&gt;Dr.&lt;/option&gt;
&lt;option value="Prof."&gt;Prof.&lt;/option&gt;
&lt;option value="Barr."&gt;Barr.&lt;/option&gt;
&lt;option value="Engr"&gt;Engr&lt;/option&gt;
&lt;option value="Justice"&gt;Justice&lt;/option&gt;
&lt;option value="Evang"&gt;Evang&lt;/option&gt;
&lt;option value="Arch"&gt;Arch&lt;/option&gt;
&lt;option value="Chief"&gt;Chief&lt;/option&gt;
&lt;option value="Hon"&gt;Hon&lt;/option&gt;
&lt;/select&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect1"&gt;
&lt;label for="title"&gt;&lt;/label&gt;
&lt;span class="selectRequiredMsg"&gt;Please select an item.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;tr align="left"&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="167" align="left"&gt;&lt;strong&gt;Surname:&lt;/strong&gt;&lt;/td&gt;
&lt;td width="648" align="left" valign="middle"&gt;&lt;span id="sprytextfield1"&gt;
&lt;label for="surname"&gt;&lt;/label&gt;
&lt;input name="surname" type="text" id="surname" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your surname is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Other Names:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;label for="othernames"&gt;&lt;/label&gt;
&lt;input name="othernames" type="text" id="othernames" size="51" maxlength="40" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Date Of Birth:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;label for="dob"&gt;&lt;/label&gt;
&lt;span id="sprytextfield9"&gt;
&lt;label for="dateofbirth"&gt;&lt;/label&gt;
&lt;input type="text" name="dateofbirth" id="dateofbirth" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt; (format dd/mm/yyyy)                    &lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Father's Name:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield6"&gt;
&lt;label for="fathersname"&gt;&lt;/label&gt;
&lt;input name="fathersname" type="text" id="fathersname" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your father's name is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Mother's Name:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield7"&gt;
&lt;label for="mothersname"&gt;&lt;/label&gt;
&lt;input name="mothersname" type="text" id="mothersname" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your mother's name  is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Ward:      &lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect2"&gt;
&lt;label for="ward"&gt;&lt;/label&gt;
&lt;select name="ward" id="ward"&gt;
&lt;option value="" selected="selected"&gt;Please select&lt;/option&gt;
&lt;option value="AdagbeMmimi"&gt;AdagbeMmimi&lt;/option&gt;
&lt;option value="Aga"&gt;Aga&lt;/option&gt;
&lt;option value="Anugama"&gt;Anugama&lt;/option&gt;
&lt;option value="Esike"&gt;Esike&lt;/option&gt;
&lt;option value="Etele"&gt;Etele&lt;/option&gt;
&lt;option value="Mmimi"&gt;Mmimi&lt;/option&gt;
&lt;option value="Eziakpaka"&gt;Eziakpaka&lt;/option&gt;
&lt;option value="Okpalo/Nwadika"&gt;Okpalo/Nwadika&lt;/option&gt;
&lt;option value="Ugwaku/Mgbike"&gt;Ugwaku/Mgbike&lt;/option&gt;
&lt;option value="Umukwa"&gt;Umukwa&lt;/option&gt;
&lt;option value="JikoroUfele"&gt;JikoroUfele&lt;/option&gt;
&lt;option value="Omesu"&gt;Omesu&lt;/option&gt;
&lt;option value="Umuezunu"&gt;Umuezunu&lt;/option&gt;
&lt;option value="Urualo/Uruejimofor"&gt;Urualo/Uruejimofor&lt;/option&gt;
&lt;option value="Urukpaleri"&gt;Urukpaleri&lt;/option&gt;
&lt;option value="Uruoji"&gt;Uruoji&lt;/option&gt;
&lt;/select&gt;
&lt;span class="selectRequiredMsg"&gt;Please select a ward.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Village:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect3"&gt;
&lt;label for="village"&gt;&lt;/label&gt;
&lt;select name="village" id="village"&gt;
&lt;option selected="selected"&gt;Please Select...&lt;/option&gt;
&lt;option value="Iridana"&gt;Iridana&lt;/option&gt;
&lt;option value="Mmimi"&gt;Mmimi&lt;/option&gt;
&lt;option value="Umuezeunu"&gt;Umuezeunu&lt;/option&gt;
&lt;option value="Umukwa"&gt;Umukwa&lt;/option&gt;
&lt;option value="EnugoMmimi"&gt;EnugoMmimi&lt;/option&gt;
&lt;option value="UmumriamObunese"&gt;UmumriamObunese&lt;/option&gt;
&lt;option value="Urualo"&gt;Urualo&lt;/option&gt;
&lt;option value="Uruejimofor"&gt;Uruejimofor&lt;/option&gt;
&lt;option value="Urukpaleri"&gt;Urukpaleri&lt;/option&gt;
&lt;option value="Uruoji"&gt;Uruoji&lt;/option&gt;
&lt;/select&gt;
&lt;span class="selectRequiredMsg"&gt;Please select a village.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Age Grade:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect4" /&gt;
&lt;label for="agegrade"&gt;&lt;/label&gt;
&lt;select name="agegrade" id="agegrade"&gt;          
&lt;option selected="selected"&gt;1900-1903&lt;/option&gt;
&lt;option&gt;1904-1907&lt;/option&gt;
&lt;option&gt;1908-1911&lt;/option&gt;
&lt;option&gt;1912-1915&lt;/option&gt;
&lt;option&gt;1916-1919&lt;/option&gt;
&lt;option&gt;1920-1923&lt;/option&gt;
&lt;option&gt;1924-1927&lt;/option&gt;
&lt;option&gt;1928-1931&lt;/option&gt;
&lt;option&gt;1932-1935&lt;/option&gt;
&lt;option&gt;1936-1939&lt;/option&gt;
&lt;option&gt;1940-1943&lt;/option&gt;
&lt;option&gt;1944-1947&lt;/option&gt;
&lt;option&gt;1948-1951&lt;/option&gt;
&lt;option&gt;1952-1955&lt;/option&gt;
&lt;option&gt;1956-1959&lt;/option&gt;
&lt;option&gt;1960-1963&lt;/option&gt;
&lt;option&gt;1964-1967&lt;/option&gt;
&lt;option&gt;1968-1971&lt;/option&gt;
&lt;option&gt;1972-1975&lt;/option&gt;
&lt;option&gt;1976-1979&lt;/option&gt;
&lt;option&gt;1980-1983&lt;/option&gt;
&lt;option&gt;1984-1987&lt;/option&gt;
&lt;option&gt;1988-1991&lt;/option&gt;
&lt;option&gt;1992-1995&lt;/option&gt;
&lt;option&gt;1996-1999&lt;/option&gt;
&lt;option&gt;2000-2003&lt;/option&gt;
&lt;/select&gt;
&lt;script&gt;         
    $(document).ready(function(){             
    $("#agegrade").change(function () {                   
    var str = "";                   
    $("select option:selected").each(function () {               
    str = $(this).text();               
    if(str == "1900-1903")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1904-1907")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1908-1911")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1912-1915")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1916-1919")                  
    str = "EGBE NA UGO";
    else if(str == "1920-1923")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1924-1927")                  
    str = "IGWEBUIKE";               
    else if(str == "1928-1931")                  
    str = "ANYILIGWE";
    else if(str == "1932-1935")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1936-1939")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1940-1943")                  
    str = "UCHE BU UKO";
    else if(str == "1944-1947")                  
    str = "NAME TO BE PROVIDED";               
    else if(str == "1948-1951")                  
    str = "OFU OBI";               
    else if(str == "1952-1955")                  
    str = "ANULIKA";
    else if(str == "1956-1959")                  
    str = "IFUNANYA";               
    else if(str == "1960-1963")                  
    str = "NWANNEKA";               
    else if(str == "1964-1967")                  
    str = "NAME TO BE PROVIDED";
    else if(str == "1968-1971")                  
    str = "YET TO BE GROUPED";               
    else if(str == "1972-1975")                  
    str = "YET TO BE GROUPED";               
    else if(str == "1976-1979")                  
    str = "YET TO BE GROUPED";
    else if(str == "1980-1983")                  
    str = "YET TO BE GROUPED";               
    else if(str == "1984-1987")                  
    str = "YET TO BE GROUPED";               
    else if(str == "1988-1991")                  
    str = "YET TO BE GROUPED";
    else if(str == "1992-1995")                  
    str = "YET TO BE GROUPED";               
    else if(str == "1996-1999")                  
    str = "YET TO BE GROUPED";
    else if(str == "2000-2003")                  
    str = "YET TO BE GROUPED";                              
    else
    str = "Please Select An Item";
                           });                   
    $("#adiv").text(str);
     })                 
     .change();         
     });

&lt;/script&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="167" align="left"&gt;&lt;strong&gt;Name Of Age Grade:&lt;/strong&gt;&lt;/td&gt;
&lt;td width="648" align="left" valign="middle"&gt;
&lt;label for="NAgegrade"&gt;&lt;/label&gt;
&lt;input name="NAgegrade" type="text" id="NAgegrade" size="51" maxlength="40" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Occupation:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect5"&gt;
&lt;label for="occupation"&gt;&lt;/label&gt;
&lt;select name="occupation" id="occupation"&gt;
&lt;option selected="selected"&gt;Please Select...&lt;/option&gt;
&lt;option value="Architect"&gt;Architect&lt;/option&gt;
&lt;option value="Business"&gt;Business&lt;/option&gt;
&lt;option value="Student"&gt;Student&lt;/option&gt;
&lt;option value="Scientist"&gt;Scientist&lt;/option&gt;
&lt;option value="Farmer"&gt;Farmer&lt;/option&gt;
&lt;option value="Lawyer"&gt;Lawyer&lt;/option&gt;
&lt;option value="Doctor"&gt;Doctor&lt;/option&gt;
&lt;option value="Professor"&gt;Professor&lt;/option&gt;
&lt;option value="Engineer"&gt;Engineer&lt;/option&gt;
&lt;option value="Lecturer"&gt;Lecturer&lt;/option&gt;
&lt;option value="Teacher"&gt;Teacher&lt;/option&gt;
&lt;option value="Civil Servant"&gt;Civil Servant&lt;/option&gt;
&lt;option value="Judge"&gt;Judge&lt;/option&gt;
&lt;option value="Pharmacist"&gt;Pharmacist&lt;/option&gt;
&lt;option value="Educationist"&gt;Educationist&lt;/option&gt;
&lt;option value="Surveyor"&gt;Surveyor&lt;/option&gt;
&lt;option value="Ploice Officer"&gt;Ploice Officer&lt;/option&gt;
&lt;option value="Military Officer"&gt;Military Officer&lt;/option&gt;
&lt;option value="Custom Officer"&gt;Custom Officer&lt;/option&gt;
&lt;option value="Immigration Officer"&gt;Immigration Officer&lt;/option&gt;
&lt;option value="others"&gt;Others Please specify...&lt;/option&gt;
&lt;/select&gt;
&lt;span class="selectRequiredMsg"&gt;Please select an item.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Phone Number:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield2"&gt;
&lt;label for="phonenumber"&gt;&lt;/label&gt;
&lt;input name="phonenumber" type="text" id="phonenumber" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your Phone Number  is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Email Address:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield3"&gt;
&lt;label for="email"&gt;&lt;/label&gt;
&lt;input name="email" type="text" id="email" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your Email  is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Country Of Residence:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryselect6"&gt;
&lt;label for="country"&gt;&lt;/label&gt;
&lt;select onchange="print_state('state',this.selectedIndex);" id="country" name="country"&gt;&lt;/select&gt;
&lt;span class="selectRequiredMsg"&gt;Please select an item.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;State Of Residence:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield4"&gt;
&lt;label for="state"&gt;&lt;/label&gt;
&lt;select name="state" id="state"&gt;&lt;/select&gt;
&lt;script language="javascript"&gt;print_country("country");&lt;/script&gt;
&lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;City Of Residence:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield5"&gt;
&lt;label for="city"&gt;&lt;/label&gt;
&lt;input name="city" type="text" id="city" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your city is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Address(Optional):&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextarea1"&gt;
&lt;label for="address"&gt;&lt;/label&gt;
&lt;textarea name="address" id="address" cols="45" rows="5"&gt;&lt;/textarea&gt;
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;strong&gt;Create your username and password&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Username:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprytextfield8"&gt;
&lt;label for="username"&gt;&lt;/label&gt;
&lt;input name="username" type="text" id="username" size="51" maxlength="40" /&gt;
&lt;span class="textfieldRequiredMsg"&gt;Your username is required.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Password:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="sprypassword1"&gt;
&lt;label for="password"&gt;&lt;/label&gt;
&lt;input name="password" type="password" id="password" size="51" maxlength="30" /&gt;
&lt;span class="passwordMaxCharsMsg"&gt;Must be a maximum of 40 characters.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;&lt;strong&gt;Verify Password:&lt;/strong&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;span id="spryconfirm1"&gt;
&lt;label for="password"&gt;&lt;/label&gt;
&lt;input name="password2" type="password" id="password" size="51" maxlength="40" /&gt;
&lt;span class="confirmRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The values don't match.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left"&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align="left"&gt;
&lt;td&gt;
&lt;input name="submit" type="submit" id="submit" value="Submit" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;input type="hidden" name="MM_insert" value="form1" /&gt;
&lt;/form&gt;
</code></pre>

<p></p>
