I'mtryingtogetthevalueofhowever,itreturnsmeonlytheinput.pgtasitcanbeseenintheimageabove,alreadytriedwith.valueand.val(),howeveritstilldoesnotwork,followthecodeimagebelow:
Ineedittoreturnthevaluethatisinthefield,insteadofitreturningthevaluetheuserwrote,itreturnsmetheDOMelement,forexample:Ityped,"Male", "Female" in each of the fields that contains the "pgt" class, I want these two values to appear in the options array (which is present in the chrome console image), but instead of appearing "Male", "Female", it appears "input.pgt", "input.pgt"