ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Perform action after Lookup
Title:
B
I
{code}
?
I have a form with a lookup field. I would like to populate some elements based on the value selected in the lookup. Example: Edit Form (on a popup). On this edit form I have a lookup called SelectCustomer. When I click this a lookup is opened (table layout) where I can search for the appropriate customer. When a customer is selected the lookup view is closed and the customer id is filled in the lookup field. At this moment I would also like to populate some labels and inputs on the edit form with the selected customer's data. Is there an OnChange event of the lookup element?
Save Changes
Cancel
mounhim
asked at 10 Jan 2014
Answers
B
I
{code}
?
yes there is change event on the lookup (and on all the other editors), so having this: @Html.Awe().Lookup("Category") you can do this in js: $('#Category').change(function(){ alert($(this).val()); });
Save Changes
Cancel
Omu
answered at 10 Jan 2014
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