akash akash - 1 year ago 154
HTML Question

How to get the selected value of @html.dropdownlist here?

I am having this on my client side console

enter image description here

I want to extract only 2015 which is currently selected option.
How is it possible?

Answer Source


According to this link,

$( "#YearIn option:selected" ).text();

This should do.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download