Simple_dropdown_select
Example how to select simple dropdown and hot to send values from one element to another
by asartem
JavaScript
<script type="text/javascript">
// TODO: DELETE ALL
function SendBillingInformation(sender, eventArgs) {
var currentTab = eventArgs.get_tab();
if (currentTab.get_text() == "Credit Card") {
// select the same country of a credit card tab like on account information tab
var creditCardInfoCountry = $("select[id$='MyCreditCardInfo_editor_selectorCountry']");
var billingInfoCountry = $("input[id$='CountryAndProvince_ComboBoxCountry_Input']");
creditCardInfoCountry.find("option:contains('" + billingInfoCountry.val() + "')").attr('selected', 'selected');
creditCardInfoCountry.val();
// select the same province of a credit card tab like on account information tab
var creditCardInfoProvince = $("select[id$='MyCreditCardInfo_editor_selectorProvince']");
var billingInfoProvince = $("input[id$='MyBusinessBillingInfo_CountryAndProvince_ComboBoxProvince_Input']");
creditCardInfoProvince.find("option:contains('" + billingInfoProvince.val() + "')").attr('selected', 'selected');/ }
}
</script>