I have a multilang page with order form and I try to add some feature to auto-select country from <select> list based on language.
Here is my HTML code:
<select name="billing_country" id="billing_country" class="country_to_state country_select select2-hidden-accessible" autocomplete="country" tabindex="-1" aria-hidden="true">
<option value="">Land/Region auswählen …</option>
<option value="CZ" selected="selected">Tschechien</option>
<option value="FR">Frankreich</option>
<option value="ES">Spanien</option>
<option value="DE">Deutschland</option>
<option value="IT">Italien</option>
</select>
And the page language inside the HTML attribute. In this case I would like to select option: value="DE":
<html lang="de-DE" class="js svg background-fixed">
This is the only one language variable that I can use.
I need to target <option> value based on HTML lang attribute.
I think it can be done with jQuery. How to do it?