3) Using Javascript and the following array variable var
countries = [ { code: “AR”, name: “Argentina”, capital: “BuenosAires” },
{ code: “AT”, name: “Austria”, capital: “Vienna” },
{ code: “BE”, name: “Belgium”, capital: “Brussels” },
{ code: “CA”, name: “Canada”, capital: “Ottawa” } ];
write an HTML page containing only JavaScript (no jQuery) thatwould use a loop to generate a drop-down list that would displaythe country names. The value attribute for each item in the listshould be the country code. Add an event handler for the drop-downlist’s change event. This handler should display the capital cityof the currently selected country within the <div> elementthat
PayPal Gateway not configured
PayPal Gateway not configured