Saturday, 31 August 2013

Jquery to change dropdown value of 2nd dropdown on chnage of first.

So this is a very simple code.
Essentially we can use this logic for other html elements as well. Since I encountered such a situation. Posting this for the dropdown element.
   wmdropdown_countrycode:- id of dropdown 1
    wmdropdown_nationality:- id of dropdown 2

myfunction
() {
$(
'#wmdropdown_countrycode').change(function(){ var selectedCountry = $(this).attr('value');
$(
'#wmdropdown_nationality').find('option').each(function() { if($(this).val().toLowerCase() == selectedCountry.toLowerCase()){
$(
this).attr('selected','selected');
}
});
});
}


AWS Certificate Manager - Import Certificate

How to import a certificate. Use Key Store Explorer to open the cert and export keypair in PEM format  This will save a file cert.pem. Make ...