I have several input elements, that only differ on their data- attribute.
<input name="country" data-action="buy"/>
<input name="country" data-action="sell"/>
I'm trying to get the value that the user entered into the input with a "buy" data-
What's the selector I should use?
$("input[name=country] ????").val()
(There is a reason they have the same name and no id that's not related to the question)