javascript - set country by default using -


my code doesn't seem work. i'm trying set country dropdown usa page loads default without hard coding.

            <tr>                 <td><label for="state_province__c">state/province:</label></td>                 <td><select id="state_province__c" name="state_province__c" title="state/province"></select></td>             </tr>              <tr>                 <td><label for="country__c">*country:</label></td>                 <td><select id="country__c" name="country__c" title="country"></select></td>             </tr>          <script type="text/javascript">             jquery(document).ready(function() {                 populatecountries("country__c", "state_province__c");                 jquery("#country__c").val("usa").change();                 });         </script> 


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -