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 change Lookup value using javascript
Title:
B
I
{code}
?
How to change Lookup value use javascript, I tried this: @Html.Awe().LookupFor(o => o.Lookupid).Controller("prdBOMMain") <script type="text/javascript"> $('#Lookupid').val(changevalue) </script> but it's not showing up in the lookup field
Save Changes
Cancel
RayBen
asked at 21 Sep 2022
Answers
B
I
{code}
?
you need to also trigger change, `$('#Lookupid').val(newValue).change();`
Save Changes
Cancel
Omu
answered at 21 Sep 2022
Thans your answer
at 22 Sep 2022
RayBen
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