I have a form and wanna reuse some code (DRY).
Here is a part of the form:
<select id="user_country" name="user[country]"><option value="AT">Austria</option>
I wanna match the word user depending on the
ID
xxxxxx_country
or on the NAME
xxxxxx[country]
how can I get the xxxxxx ?
Many thanks