ajax - populate jquery select2 with original value -
ajax - populate jquery select2 with original value - i using select2 plugin autocomplete text box. autocomplete makes ajax phone call employee view in database. working great except when user opens webform edit record. need select2 command load value saved record regardless of whether exists in list or not. when open edit form, select2 command blank. know can load value if in json info homecoming ajax call, if it's not? can see value in initselection don't know how set controls text/value it. long story short, view making ajax phone call may or may not have original employee value in it. example, if employee selected view left branch/agency, view no longer show them. still need display original value in control. hope makes sense. here have code. can see original value in initselection don't know how in control: var url = '@url.action("getemployees", "assetassignment")'; var originalvalue = ""; $('#assi...