I\'m looking for a way to attach a click-event to a select2-result-item. I\'ve gone ahead and formatted both result and selection via
function format(state)
Simple onchange event like this also would help to solve the problem
Select a customer from here @{ if (ViewBag.customers != null) { foreach (CustomerTBL customer in ((List)ViewBag.customers).OrderBy(c => c.cusCustomerName)) { @customer.cusCustomerName } } }