ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to get the text value of AjaxDropdown selected item
Title:
B
I
{code}
?
Hi I am trying to get the text of the selected item in a dropdown list. @(Html.Awe().AjaxDropdownFor(d => d.ProductFamilyID) .HtmlAttributes(new { @style = "width:200px" }) In jQuery I am trying to get the the text of the selected item, how to achieve that ?
Save Changes
Cancel
SalesARM
asked at 18 Mar 2019
Answers
B
I
{code}
?
to find the `select` html tag used by the ajaxdropdown you can call var sel = $('#ParentCategory').parent().find('.awe-display'); and to get the selected option value: var textval = sel.find('option:selected').text();
Save Changes
Cancel
Omu
answered at 19 Mar 2019
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK