I have the below code in the form for the select dropdown in my web page.
how can i get the selected text from javascript.
i was able to get the value, but text shows as undefined.
how can i get the selected text from javascript.
i was able to get the value, but text shows as undefined.
Code:
<SELECT name="queue" id="queue"><OPTION selected value="0">Select reason</OPTION><option value="Residential Tier 1 Chat" text="Account Information">Account Information</option><option value="NEW Residential Tier 1 Chat" text="Billing Inquiry">Billing Inquiry</option><option value="Residential Tier 2 Chat" text="Browsing/Connectivity Issues">Browsing/Connectivity Issues</option><option value="Residential Tier 2 Chat" text="Email Issues">Email Issues</option><option value="NEW Residential Tier 4 Chat" text="Other">Other</option><option value="NEW Residential Tier 6 Chat" text="Product Questions">Product Questions</option><option value="NEW Residential Tier 3 Chat" text="Sales">Sales</option></SELECT>
Comment