jQuery - Required Dynamic Input Fields
<p>The first script that you see does not work because the "tr" element that includes "t1_t2_c_p_addressBook_input_txbCompanyName" does not have an assigned ID.</p>

<p>The second script does work because there is a "tr" element "t1_t2_c_p_addressBook_input_txbFirstName" with an assigned ID of "t1_t2_c_p_addressBook_input_rowFirstName". How can I make the first script to work? I can not alter the elements or the IDs of the elements. I can only insert one script that will allow me to override. This is part of an e-commerce platform where I can only control the HTML template and add custom messages to different pages. The script would be added in a custom message on the Shipping page of the checkout process.</p>

<p>In other words, I need to make the text input field (that I can't control) that has the ID of "t1_t2_c_p_addressBook_input_txbCompanyName" required without using any "tr" stuff.</p>

<pre><code>$(document).ready(function () {
    var $companyname = $('#t1_t2_c_p_addressBook_input_txbCompanyName');
    $companyname.parent('td').prev('td').prepend('&lt;span style="color: Red;"&gt;*&lt;/span&gt;');
    $('input#t1_t2_c_p_addressBook_input_btnSave').click(function (e) {
        if($companyname.val().length &lt; 1) {
            e.preventDefault();
            $('span#mainContent').parent().prepend('&lt;div class="MessageBox" id="t1_t2_c_vs" &lt;img align="left" src="/Images/icoExclamation.gif"&gt;Please correct the following:&lt;ul&gt;&lt;li&gt;Company Name is a required field&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;');
        }
    });
});
$(document).ready(function () {
    var $firstname = $('#t1_t2_c_p_addressBook_input_rowFirstName td.valueCell input');
    $firstname.parent('td').prev('td').prepend('&lt;span style="color: Red;"&gt;*&lt;/span&gt;');
    $('input#t1_t2_c_p_addressBook_input_btnSave').click(function (e) {
        if($firstname.val().length &lt; 1) {
            e.preventDefault();
            $('span#mainContent').parent().prepend('&lt;div class="MessageBox" id="t1_t2_c_vs" &lt;img align="left" src="/Images/icoExclamation.gif"&gt;Please correct the following:&lt;ul&gt;&lt;li&gt;First Name is a required field&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;');
        }
    });
});
</code></pre>

<p>Here is all of the HTML. This particular piece of HTML is generated dynamically by the web application.</p>

<pre><code>&lt;div id="t1_t2_c_p_addressBook_pnlEdit" style="padding:4px;width:505px;margin-top:1em;"&gt;
    &lt;span id="t1_t2_c_p_addressBook_input_lblHeading" style="font-weight:bold;"&gt;Create a New Shipping Address:&lt;/span&gt;
    &lt;div&gt;
        &lt;span id="" style="color:Red;"&gt;*&lt;/span&gt;&lt;span style="font-size:8pt;"&gt; = required field&lt;/span&gt;
    &lt;/div&gt;
    &lt;table id="t1_t2_c_p_addressBook_input_tblAddress" cellspacing="0" cellpadding="2" border="0" style="border-collapse:collapse;"&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowAddressName"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Address Name:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbAddressName" type="text" id="t1_t2_c_p_addressBook_input_txbAddressName" style="width:286px;"/&gt;
            &lt;img src="/Images/help.gif" border="0" style="height:16px;width:16px;"/&gt;
            &lt;div class="HelpPopup" style="width:400px;visibility:hidden;position:absolute;z-index:999;background:white;"&gt;
                 Examples: Work, Home
            &lt;/div&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowFirstName"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            First Name:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="firstNameReq" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbFname" type="text" id="t1_t2_c_p_addressBook_input_txbFname" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowLastName"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Last Name:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="lastNameReq" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbLname" type="text" id="t1_t2_c_p_addressBook_input_txbLname" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Company Name:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbCompanyName" type="text" id="t1_t2_c_p_addressBook_input_txbCompanyName" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Address Line 1:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbStreet1" type="text" id="t1_t2_c_p_addressBook_input_txbStreet1" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Address Line 2:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbStreet2" type="text" id="t1_t2_c_p_addressBook_input_txbStreet2" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="labelCell" valign="top"&gt;
            City:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbCity" type="text" id="t1_t2_c_p_addressBook_input_txbCity" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowStateRegion"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            State/Region/Province:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="stateReq" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;select name="t1:t2:c:p:addressBook:input:ddlState" id="t1_t2_c_p_addressBook_input_ddlState"&gt;
                &lt;option selected="selected" value=""&gt;&lt;/option&gt;
                &lt;option value="AL"&gt;Alabama&lt;/option&gt;
                &lt;option value="AK"&gt;Alaska&lt;/option&gt;
                &lt;option value="AZ"&gt;Arizona&lt;/option&gt;
                &lt;option value="AR"&gt;Arkansas&lt;/option&gt;
                &lt;option value="CA"&gt;California&lt;/option&gt;
                &lt;option value="CO"&gt;Colorado&lt;/option&gt;
                &lt;option value="CT"&gt;Connecticut&lt;/option&gt;
                &lt;option value="DE"&gt;Delaware&lt;/option&gt;
                &lt;option value="DC"&gt;District of Columbia&lt;/option&gt;
                &lt;option value="FL"&gt;Florida&lt;/option&gt;
                &lt;option value="GA"&gt;Georgia&lt;/option&gt;
                &lt;option value="HI"&gt;Hawaii&lt;/option&gt;
                &lt;option value="ID"&gt;Idaho&lt;/option&gt;
                &lt;option value="IL"&gt;Illinois&lt;/option&gt;
                &lt;option value="IN"&gt;Indiana&lt;/option&gt;
                &lt;option value="IA"&gt;Iowa&lt;/option&gt;
                &lt;option value="KS"&gt;Kansas&lt;/option&gt;
                &lt;option value="KY"&gt;Kentucky&lt;/option&gt;
                &lt;option value="LA"&gt;Louisiana&lt;/option&gt;
                &lt;option value="ME"&gt;Maine&lt;/option&gt;
                &lt;option value="MD"&gt;Maryland&lt;/option&gt;
                &lt;option value="MA"&gt;Massachusetts&lt;/option&gt;
                &lt;option value="MI"&gt;Michigan&lt;/option&gt;
                &lt;option value="MN"&gt;Minnesota&lt;/option&gt;
                &lt;option value="MS"&gt;Mississippi&lt;/option&gt;
                &lt;option value="MO"&gt;Missouri&lt;/option&gt;
                &lt;option value="MT"&gt;Montana&lt;/option&gt;
                &lt;option value="NE"&gt;Nebraska&lt;/option&gt;
                &lt;option value="NV"&gt;Nevada&lt;/option&gt;
                &lt;option value="NH"&gt;New Hampshire&lt;/option&gt;
                &lt;option value="NJ"&gt;New Jersey&lt;/option&gt;
                &lt;option value="NM"&gt;New Mexico&lt;/option&gt;
                &lt;option value="NY"&gt;New York&lt;/option&gt;
                &lt;option value="NC"&gt;North Carolina&lt;/option&gt;
                &lt;option value="ND"&gt;North Dakota&lt;/option&gt;
                &lt;option value="OH"&gt;Ohio&lt;/option&gt;
                &lt;option value="OK"&gt;Oklahoma&lt;/option&gt;
                &lt;option value="OR"&gt;Oregon&lt;/option&gt;
                &lt;option value="PA"&gt;Pennsylvania&lt;/option&gt;
                &lt;option value="RI"&gt;Rhode Island&lt;/option&gt;
                &lt;option value="SC"&gt;South Carolina&lt;/option&gt;
                &lt;option value="SD"&gt;South Dakota&lt;/option&gt;
                &lt;option value="TN"&gt;Tennessee&lt;/option&gt;
                &lt;option value="TX"&gt;Texas&lt;/option&gt;
                &lt;option value="UT"&gt;Utah&lt;/option&gt;
                &lt;option value="VT"&gt;Vermont&lt;/option&gt;
                &lt;option value="VA"&gt;Virginia&lt;/option&gt;
                &lt;option value="WA"&gt;Washington&lt;/option&gt;
                &lt;option value="WV"&gt;West Virginia&lt;/option&gt;
                &lt;option value="WI"&gt;Wisconsin&lt;/option&gt;
                &lt;option value="WY"&gt;Wyoming&lt;/option&gt;
                &lt;option value="AA"&gt;Armed Forces Americas (AA)&lt;/option&gt;
                &lt;option value="AE"&gt;Armed Forces Africa/Canada/Europe/Middle East (AE)&lt;/option&gt;
                &lt;option value="AP"&gt;Armed Forces Pacific (AP)&lt;/option&gt;
                &lt;option value="AS"&gt;American Samoa&lt;/option&gt;
                &lt;option value="FM"&gt;Federated States of Micronesia&lt;/option&gt;
                &lt;option value="GU"&gt;Guam&lt;/option&gt;
                &lt;option value="MH"&gt;Marshall Islands&lt;/option&gt;
                &lt;option value="MP"&gt;Northern Mariana Islands&lt;/option&gt;
                &lt;option value="PW"&gt;Palau&lt;/option&gt;
                &lt;option value="PR"&gt;Puerto Rico&lt;/option&gt;
                &lt;option value="VI"&gt;Virgin Islands&lt;/option&gt;
            &lt;/select&gt;
            &lt;select name="t1:t2:c:p:addressBook:input:ddlStateDutch" id="t1_t2_c_p_addressBook_input_ddlStateDutch"&gt;
                &lt;option selected="selected" value=""&gt;&lt;/option&gt;
                &lt;option value="Drenthe"&gt;Drenthe&lt;/option&gt;
                &lt;option value="Flevoland"&gt;Flevoland&lt;/option&gt;
                &lt;option value="Friesland"&gt;Friesland&lt;/option&gt;
                &lt;option value="Gelderland"&gt;Gelderland&lt;/option&gt;
                &lt;option value="Groningen"&gt;Groningen&lt;/option&gt;
                &lt;option value="Limburg"&gt;Limburg&lt;/option&gt;
                &lt;option value="Noord-Brabant"&gt;Noord-Brabant&lt;/option&gt;
                &lt;option value="Noord-Holland"&gt;Noord-Holland&lt;/option&gt;
                &lt;option value="Overijssel"&gt;Overijssel&lt;/option&gt;
                &lt;option value="Utrecht"&gt;Utrecht&lt;/option&gt;
                &lt;option value="Zeeland"&gt;Zeeland&lt;/option&gt;
                &lt;option value="Zuid-Holland"&gt;Zuid-Holland&lt;/option&gt;
            &lt;/select&gt;
            &lt;select name="t1:t2:c:p:addressBook:input:ddlStateCA" id="t1_t2_c_p_addressBook_input_ddlStateCA"&gt;
                &lt;option selected="selected" value=""&gt;&lt;/option&gt;
                &lt;option value="AB"&gt;Alberta&lt;/option&gt;
                &lt;option value="BC"&gt;British Columbia&lt;/option&gt;
                &lt;option value="MB"&gt;Manitoba&lt;/option&gt;
                &lt;option value="NB"&gt;New Brunswick&lt;/option&gt;
                &lt;option value="NL"&gt;Newfoundland and Labrador&lt;/option&gt;
                &lt;option value="NT"&gt;Northwest Territories&lt;/option&gt;
                &lt;option value="NS"&gt;Nova Scotia&lt;/option&gt;
                &lt;option value="NU"&gt;Nunavut&lt;/option&gt;
                &lt;option value="ON"&gt;Ontario&lt;/option&gt;
                &lt;option value="PE"&gt;Prince Edward Island&lt;/option&gt;
                &lt;option value="QC"&gt;Quebec&lt;/option&gt;
                &lt;option value="SK"&gt;Saskatchewan&lt;/option&gt;
                &lt;option value="YT"&gt;Yukon&lt;/option&gt;
            &lt;/select&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbStateAlt" type="text" id="t1_t2_c_p_addressBook_input_txbStateAlt"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowZipCode"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Zip/Postal Code:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="zipRequired" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbZip" type="text" id="t1_t2_c_p_addressBook_input_txbZip" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Country:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;select name="t1:t2:c:p:addressBook:input:ddlCountry" id="t1_t2_c_p_addressBook_input_ddlCountry" onchange="$451.setRequiredFields();"&gt;
                &lt;option selected="selected" value="US"&gt;United States of America&lt;/option&gt;
                &lt;option value="AF"&gt;Afghanistan&lt;/option&gt;
                &lt;option value="AX"&gt;&amp;#197;land Islands&lt;/option&gt;
                &lt;option value="AL"&gt;Albania&lt;/option&gt;
                &lt;option value="DZ"&gt;Algeria&lt;/option&gt;
                &lt;option value="AS"&gt;American Samoa&lt;/option&gt;
                &lt;option value="AD"&gt;Andorra&lt;/option&gt;
                &lt;option value="AO"&gt;Angola&lt;/option&gt;
                &lt;option value="AI"&gt;Anguilla&lt;/option&gt;
                &lt;option value="AQ"&gt;Antarctica&lt;/option&gt;
                &lt;option value="AG"&gt;Antigua and Barbuda&lt;/option&gt;
                &lt;option value="AR"&gt;Argentina&lt;/option&gt;
                &lt;option value="AM"&gt;Armenia&lt;/option&gt;
                &lt;option value="AW"&gt;Aruba&lt;/option&gt;
                &lt;option value="AU"&gt;Australia&lt;/option&gt;
                &lt;option value="AT"&gt;Austria&lt;/option&gt;
                &lt;option value="AZ"&gt;Azerbaijan&lt;/option&gt;
                &lt;option value="BS"&gt;Bahamas&lt;/option&gt;
                &lt;option value="BH"&gt;Bahrain&lt;/option&gt;
                &lt;option value="BD"&gt;Bangladesh&lt;/option&gt;
                &lt;option value="BB"&gt;Barbados&lt;/option&gt;
                &lt;option value="BY"&gt;Belarus&lt;/option&gt;
                &lt;option value="BE"&gt;Belgium&lt;/option&gt;
                &lt;option value="BZ"&gt;Belize&lt;/option&gt;
                &lt;option value="BJ"&gt;Benin&lt;/option&gt;
                &lt;option value="BM"&gt;Bermuda&lt;/option&gt;
                &lt;option value="BT"&gt;Bhutan&lt;/option&gt;
                &lt;option value="BO"&gt;Bolivia&lt;/option&gt;
                &lt;option value="BA"&gt;Bosnia and Herzegovina&lt;/option&gt;
                &lt;option value="BW"&gt;Botswana&lt;/option&gt;
                &lt;option value="BV"&gt;Bouvet Island&lt;/option&gt;
                &lt;option value="BR"&gt;Brazil&lt;/option&gt;
                &lt;option value="IO"&gt;British Indian Ocean Territory&lt;/option&gt;
                &lt;option value="BN"&gt;Brunei Darussalam&lt;/option&gt;
                &lt;option value="BG"&gt;Bulgaria&lt;/option&gt;
                &lt;option value="BF"&gt;Burkina Faso&lt;/option&gt;
                &lt;option value="BI"&gt;Burundi&lt;/option&gt;
                &lt;option value="KH"&gt;Cambodia&lt;/option&gt;
                &lt;option value="CM"&gt;Cameroon&lt;/option&gt;
                &lt;option value="CA"&gt;Canada&lt;/option&gt;
                &lt;option value="CV"&gt;Cape Verde&lt;/option&gt;
                &lt;option value="KY"&gt;Cayman Islands&lt;/option&gt;
                &lt;option value="CF"&gt;Central African Republic&lt;/option&gt;
                &lt;option value="TD"&gt;Chad&lt;/option&gt;
                &lt;option value="CL"&gt;Chile&lt;/option&gt;
                &lt;option value="CN"&gt;China&lt;/option&gt;
                &lt;option value="CX"&gt;Christmas Island Australia&lt;/option&gt;
                &lt;option value="CC"&gt;Cocos Keeling Islands&lt;/option&gt;
                &lt;option value="CO"&gt;Colombia&lt;/option&gt;
                &lt;option value="KM"&gt;Comoros&lt;/option&gt;
                &lt;option value="CG"&gt;Congo&lt;/option&gt;
                &lt;option value="CD"&gt;Congo, D.R.&lt;/option&gt;
                &lt;option value="CK"&gt;Cook Islands&lt;/option&gt;
                &lt;option value="CR"&gt;Costa Rica&lt;/option&gt;
                &lt;option value="CI"&gt;Cote D&amp;#39;Ivoire Ivory Coast&lt;/option&gt;
                &lt;option value="HR"&gt;Croatia Hrvatska&lt;/option&gt;
                &lt;option value="CU"&gt;Cuba&lt;/option&gt;
                &lt;option value="BY"&gt;Cyprus&lt;/option&gt;
                &lt;option value="CZ"&gt;Czech Republic&lt;/option&gt;
                &lt;option value="DK"&gt;Denmark&lt;/option&gt;
                &lt;option value="DJ"&gt;Djibouti&lt;/option&gt;
                &lt;option value="DM"&gt;Dominica&lt;/option&gt;
                &lt;option value="DO"&gt;Dominican Republic&lt;/option&gt;
                &lt;option value="EC"&gt;Ecuador&lt;/option&gt;
                &lt;option value="EG"&gt;Egypt&lt;/option&gt;
                &lt;option value="SV"&gt;El Salvador&lt;/option&gt;
                &lt;option value="GQ"&gt;Equatorial Guinea&lt;/option&gt;
                &lt;option value="ER"&gt;Eritrea&lt;/option&gt;
                &lt;option value="EE"&gt;Estonia&lt;/option&gt;
                &lt;option value="ET"&gt;Ethiopia&lt;/option&gt;
                &lt;option value="FO"&gt;Faeroe Islands&lt;/option&gt;
                &lt;option value="FK"&gt;Falkland Islands Malvinas&lt;/option&gt;
                &lt;option value="FJ"&gt;Fiji&lt;/option&gt;
                &lt;option value="FI"&gt;Finland&lt;/option&gt;
                &lt;option value="FR"&gt;France&lt;/option&gt;
                &lt;option value="FX"&gt;France, Metropolitan&lt;/option&gt;
                &lt;option value="GF"&gt;French Guiana&lt;/option&gt;
                &lt;option value="PF"&gt;French Polynesia&lt;/option&gt;
                &lt;option value="TF"&gt;French Southern Territories&lt;/option&gt;
                &lt;option value="GA"&gt;Gabon&lt;/option&gt;
                &lt;option value="GM"&gt;Gambia&lt;/option&gt;
                &lt;option value="GE"&gt;Georgia&lt;/option&gt;
                &lt;option value="DE"&gt;Germany&lt;/option&gt;
                &lt;option value="GH"&gt;Ghana&lt;/option&gt;
                &lt;option value="GI"&gt;Gibraltar&lt;/option&gt;
                &lt;option value="GR"&gt;Greece&lt;/option&gt;
                &lt;option value="GL"&gt;Greenland&lt;/option&gt;
                &lt;option value="GD"&gt;Grenada&lt;/option&gt;
                &lt;option value="GP"&gt;Guadeloupe&lt;/option&gt;
                &lt;option value="GU"&gt;Guam&lt;/option&gt;
                &lt;option value="GT"&gt;Guatemala&lt;/option&gt;
                &lt;option value="GN"&gt;Guinea&lt;/option&gt;
                &lt;option value="GW"&gt;Guinea Bissau&lt;/option&gt;
                &lt;option value="GY"&gt;Guyana&lt;/option&gt;
                &lt;option value="HT"&gt;Haiti&lt;/option&gt;
                &lt;option value="HM"&gt;Heard and McDonald Is.&lt;/option&gt;
                &lt;option value="HN"&gt;Honduras&lt;/option&gt;
                &lt;option value="HK"&gt;Hong Kong&lt;/option&gt;
                &lt;option value="HU"&gt;Hungary&lt;/option&gt;
                &lt;option value="IS"&gt;Iceland&lt;/option&gt;
                &lt;option value="IN"&gt;India&lt;/option&gt;
                &lt;option value="ID"&gt;Indonesia&lt;/option&gt;
                &lt;option value="IR"&gt;Iran&lt;/option&gt;
                &lt;option value="IQ"&gt;Iraq&lt;/option&gt;
                &lt;option value="IM"&gt;Isle of Man&lt;/option&gt;
                &lt;option value="IE"&gt;Ireland&lt;/option&gt;
                &lt;option value="IL"&gt;Israel&lt;/option&gt;
                &lt;option value="IT"&gt;Italy&lt;/option&gt;
                &lt;option value="JM"&gt;Jamaica&lt;/option&gt;
                &lt;option value="JP"&gt;Japan&lt;/option&gt;
                &lt;option value="JE"&gt;Jersey&lt;/option&gt;
                &lt;option value="JO"&gt;Jordan&lt;/option&gt;
                &lt;option value="KZ"&gt;Kazakhstan&lt;/option&gt;
                &lt;option value="KE"&gt;Kenya&lt;/option&gt;
                &lt;option value="KI"&gt;Kiribati&lt;/option&gt;
                &lt;option value="KP"&gt;Korea North&lt;/option&gt;
                &lt;option value="KR"&gt;Korea South&lt;/option&gt;
                &lt;option value="KW"&gt;Kuwait&lt;/option&gt;
                &lt;option value="KG"&gt;Kyrgyzstan&lt;/option&gt;
                &lt;option value="LA"&gt;Lao P.Dem.R.&lt;/option&gt;
                &lt;option value="LV"&gt;Latvia&lt;/option&gt;
                &lt;option value="LB"&gt;Lebanon&lt;/option&gt;
                &lt;option value="LS"&gt;Lesotho&lt;/option&gt;
                &lt;option value="LR"&gt;Liberia&lt;/option&gt;
                &lt;option value="LY"&gt;Libyan Arab Jamahiriya&lt;/option&gt;
                &lt;option value="LI"&gt;Liechtenstein&lt;/option&gt;
                &lt;option value="LT"&gt;Lithuania&lt;/option&gt;
                &lt;option value="LU"&gt;Luxembourg&lt;/option&gt;
                &lt;option value="MO"&gt;Macau&lt;/option&gt;
                &lt;option value="MK"&gt;Macedonia&lt;/option&gt;
                &lt;option value="MG"&gt;Madagascar&lt;/option&gt;
                &lt;option value="MW"&gt;Malawi&lt;/option&gt;
                &lt;option value="MY"&gt;Malaysia&lt;/option&gt;
                &lt;option value="MV"&gt;Maldives&lt;/option&gt;
                &lt;option value="ML"&gt;Mali&lt;/option&gt;
                &lt;option value="MT"&gt;Malta&lt;/option&gt;
                &lt;option value="MH"&gt;Marshall Islands&lt;/option&gt;
                &lt;option value="MQ"&gt;Martinique&lt;/option&gt;
                &lt;option value="MR"&gt;Mauritania&lt;/option&gt;
                &lt;option value="MU"&gt;Mauritius&lt;/option&gt;
                &lt;option value="YT"&gt;Mayotte&lt;/option&gt;
                &lt;option value="MX"&gt;Mexico&lt;/option&gt;
                &lt;option value="FM"&gt;Micronesia&lt;/option&gt;
                &lt;option value="MD"&gt;Moldova&lt;/option&gt;
                &lt;option value="MC"&gt;Monaco&lt;/option&gt;
                &lt;option value="MN"&gt;Mongolia&lt;/option&gt;
                &lt;option value="ME"&gt;Montenegro&lt;/option&gt;
                &lt;option value="MS"&gt;Montserrat&lt;/option&gt;
                &lt;option value="MA"&gt;Morocco&lt;/option&gt;
                &lt;option value="MZ"&gt;Mozambique&lt;/option&gt;
                &lt;option value="MM"&gt;Myanmar&lt;/option&gt;
                &lt;option value="NA"&gt;Namibia&lt;/option&gt;
                &lt;option value="NR"&gt;Nauru&lt;/option&gt;
                &lt;option value="NP"&gt;Nepal&lt;/option&gt;
                &lt;option value="NL"&gt;Netherlands&lt;/option&gt;
                &lt;option value="AN"&gt;Netherlands Antilles&lt;/option&gt;
                &lt;option value="NC"&gt;New Caledonia&lt;/option&gt;
                &lt;option value="NZ"&gt;New Zealand&lt;/option&gt;
                &lt;option value="NI"&gt;Nicaragua&lt;/option&gt;
                &lt;option value="NE"&gt;Niger&lt;/option&gt;
                &lt;option value="NG"&gt;Nigeria&lt;/option&gt;
                &lt;option value="NU"&gt;Niue&lt;/option&gt;
                &lt;option value="NF"&gt;Norfolk Island&lt;/option&gt;
                &lt;option value="MP"&gt;Northern Mariana Islands&lt;/option&gt;
                &lt;option value="NO"&gt;Norway&lt;/option&gt;
                &lt;option value="OM"&gt;Oman&lt;/option&gt;
                &lt;option value="PK"&gt;Pakistan&lt;/option&gt;
                &lt;option value="PW"&gt;Palau&lt;/option&gt;
                &lt;option value="PS"&gt;Palestinian Territory, Occupied&lt;/option&gt;
                &lt;option value="PA"&gt;Panama&lt;/option&gt;
                &lt;option value="PG"&gt;Papua New Guinea&lt;/option&gt;
                &lt;option value="PY"&gt;Paraguay&lt;/option&gt;
                &lt;option value="PE"&gt;Peru&lt;/option&gt;
                &lt;option value="PH"&gt;Philippines&lt;/option&gt;
                &lt;option value="PN"&gt;Pitcairn&lt;/option&gt;
                &lt;option value="PL"&gt;Poland&lt;/option&gt;
                &lt;option value="PT"&gt;Portugal&lt;/option&gt;
                &lt;option value="PR"&gt;Puerto Rico&lt;/option&gt;
                &lt;option value="QA"&gt;Qatar&lt;/option&gt;
                &lt;option value="RE"&gt;Reunion&lt;/option&gt;
                &lt;option value="RO"&gt;Romania&lt;/option&gt;
                &lt;option value="RU"&gt;Russian Federation&lt;/option&gt;
                &lt;option value="RW"&gt;Rwanda&lt;/option&gt;
                &lt;option value="SH"&gt;Saint Helena&lt;/option&gt;
                &lt;option value="KN"&gt;Saint Kitts and Nevis&lt;/option&gt;
                &lt;option value="LC"&gt;Saint Lucia&lt;/option&gt;
                &lt;option value="PM"&gt;Saint Pierre and Miquelon&lt;/option&gt;
                &lt;option value="VC"&gt;Saint Vincent and the Grenadines&lt;/option&gt;
                &lt;option value="WS"&gt;Samoa&lt;/option&gt;
                &lt;option value="SM"&gt;San Marino&lt;/option&gt;
                &lt;option value="ST"&gt;Sao Tome and Principe&lt;/option&gt;
                &lt;option value="SA"&gt;Saudi Arabia&lt;/option&gt;
                &lt;option value="SN"&gt;Senegal&lt;/option&gt;
                &lt;option value="RS"&gt;Serbia&lt;/option&gt;
                &lt;option value="SC"&gt;Seychelles&lt;/option&gt;
                &lt;option value="SL"&gt;Sierra Leone&lt;/option&gt;
                &lt;option value="SG"&gt;Singapore&lt;/option&gt;
                &lt;option value="SK"&gt;Slovakia&lt;/option&gt;
                &lt;option value="SI"&gt;Slovenia&lt;/option&gt;
                &lt;option value="SB"&gt;Solomon Islands&lt;/option&gt;
                &lt;option value="SO"&gt;Somalia&lt;/option&gt;
                &lt;option value="ZA"&gt;South Africa&lt;/option&gt;
                &lt;option value="GS"&gt;S. Georgia &amp;amp; S. Sandwich Is.&lt;/option&gt;
                &lt;option value="ES"&gt;Spain&lt;/option&gt;
                &lt;option value="LK"&gt;Sri Lanka&lt;/option&gt;
                &lt;option value="SD"&gt;Sudan&lt;/option&gt;
                &lt;option value="SR"&gt;Suriname&lt;/option&gt;
                &lt;option value="SJ"&gt;Svalbard &amp;amp; Jan Mayen Is.&lt;/option&gt;
                &lt;option value="SZ"&gt;Swaziland&lt;/option&gt;
                &lt;option value="SE"&gt;Sweden&lt;/option&gt;
                &lt;option value="CH"&gt;Switzerland&lt;/option&gt;
                &lt;option value="SY"&gt;Syrian Arab Rep.&lt;/option&gt;
                &lt;option value="TW"&gt;Taiwan&lt;/option&gt;
                &lt;option value="TJ"&gt;Tajikistan&lt;/option&gt;
                &lt;option value="TZ"&gt;Tanzania&lt;/option&gt;
                &lt;option value="TH"&gt;Thailand&lt;/option&gt;
                &lt;option value="TG"&gt;Timor-Leste&lt;/option&gt;
                &lt;option value="TG"&gt;Togo&lt;/option&gt;
                &lt;option value="TK"&gt;Tokelau&lt;/option&gt;
                &lt;option value="TO"&gt;Tonga&lt;/option&gt;
                &lt;option value="TT"&gt;Trinidad and Tobago&lt;/option&gt;
                &lt;option value="TN"&gt;Tunisia&lt;/option&gt;
                &lt;option value="TR"&gt;Turkey&lt;/option&gt;
                &lt;option value="TM"&gt;Turkmenistan&lt;/option&gt;
                &lt;option value="TC"&gt;Turks and Caicos Islands&lt;/option&gt;
                &lt;option value="TU"&gt;Tuvalu&lt;/option&gt;
                &lt;option value="UG"&gt;Uganda&lt;/option&gt;
                &lt;option value="UA"&gt;Ukraine&lt;/option&gt;
                &lt;option value="GB"&gt;United Kingdom&lt;/option&gt;
                &lt;option value="AE"&gt;United Arab Emirates&lt;/option&gt;
                &lt;option value="UM"&gt;US Minor Outlying Is.&lt;/option&gt;
                &lt;option value="UY"&gt;Uruguay&lt;/option&gt;
                &lt;option value="UZ"&gt;Uzbekistan&lt;/option&gt;
                &lt;option value="VU"&gt;Vanuatu&lt;/option&gt;
                &lt;option value="VC"&gt;Vatican City State&lt;/option&gt;
                &lt;option value="VE"&gt;Venezuela&lt;/option&gt;
                &lt;option value="VN"&gt;Viet Nam&lt;/option&gt;
                &lt;option value="VG"&gt;Virgin Islands British&lt;/option&gt;
                &lt;option value="VI"&gt;Virgin Islands US&lt;/option&gt;
                &lt;option value="WF"&gt;Wallis and Futuna Islands&lt;/option&gt;
                &lt;option value="EH"&gt;Western Sahara&lt;/option&gt;
                &lt;option value="YE"&gt;Yemen&lt;/option&gt;
                &lt;option value="YU"&gt;Yugoslavia&lt;/option&gt;
                &lt;option value="ZM"&gt;Zambia&lt;/option&gt;
                &lt;option value="ZW"&gt;Zimbabwe&lt;/option&gt;
            &lt;/select&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowPhone"&gt;
        &lt;td class="labelCell" valign="top"&gt;
            Phone:
        &lt;/td&gt;
        &lt;td align="right" valign="top" style="width:6px;"&gt;
            &lt;span id="phoneReq" style="color:Red;"&gt;*&lt;/span&gt;
        &lt;/td&gt;
        &lt;td class="valueCell" valign="bottom"&gt;
            &lt;input name="t1:t2:c:p:addressBook:input:txbPhone" type="text" id="t1_t2_c_p_addressBook_input_txbPhone" style="width:286px;"/&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowBilling"&gt;
        &lt;td colspan="3"&gt;
            &lt;input id="t1_t2_c_p_addressBook_input_cxbBilling" type="checkbox" name="t1:t2:c:p:addressBook:input:cxbBilling" onclick="$451.setRequiredFields();"/&gt;&lt;label for="t1_t2_c_p_addressBook_input_cxbBilling"&gt;Save to Billing Address Book&lt;/label&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="t1_t2_c_p_addressBook_input_rowAdditionalFields"&gt;
        &lt;td colspan="3"&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>
