0
I’m trying to get the value of however, it returns me only the input.pgt as seen in the image above, already tried with . value and . val(), but still not working, follows the image of the code below:
I need it to return the value that is in the field, instead of it returning me the value that the user wrote, it returns me the DOM element, for example: I typed, "Male", "Female", in each of the fields that contains the class "pgt", I want these two values to appear in the options array (which is present in Chrome’s console image), but instead of appearing "Masculine", "Feminine", it appears "input.pgt", "input.pgt"
It is not clear what Leonardo wants to do, can provide us a verifiable example?
– BrTkCa
I just edited the question, make sure it’s more readable now, please.
– Leonardo Theodoro
Always put the code as text and formatted with the button
{}
– Isac