if (selectedCountry == "USA") {
$("#state").show();
}
How can I change name for my div #state with the same condition?
(to add name="NewName"
to my div id="state"
)
Smth like:
if (selectedCountry == "USA") {
$("#state").show();
$("#state").name("NewName"); <-- ?
}