You could add the id manually to the field and follow this step from the
link you sent:
var state = $('#state option:selected').val();
$('#bstate option[value=' + state + ']').attr('selected','selected');
Randy
On Wed, Mar 6, 2013 at 12:41 PM, <[email protected]> wrote:
> My form has the option to copy already entered values into a billing info
> section.
>
> Text boxes are going in fine, but I want to duplicate the state and
> country values from these select boxes:
>
> <select id="countries_states1" class="input-medium bfh-countries"
> data-countryList="US,CA"></select>
>
> <select class="input-medium bfh-states"
> data-country="countries_states1"></select>
>
> I'm using this code as a guide:
> http://stackoverflow.com/questions/2706756/how-to-copy-the-shipping-address-to-billing-address
>
> Here is my page:
> http://www.brinsterinc.com/vinew/how-to-buy-prepaid-rewards.php
>
> When I inspect that loaded page, looks like the "country" field has an
> id="countries_states1" but I don't even see an id for the state field.
>
> How can I duplicate these select box values?
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "twitter-bootstrap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.