Open emilianraduu opened 1 year ago
https://github.com/Stellar-Junior-Dev/cocktailMasters-cosmin/blob/9c91db893fbbb1c28133c2ab08b2a3971082f65b/detailsPage/script.js#L265
the feature was added, but why the changeLanguage
function has to return the flagText
?
In the "renderLanguageFlag" function, in the "divFlag" element should be added an "onClick" event that, when called, changes the text from the textInstructions element. The textInstructions element should have a unique "id" so that it can be selected.