I am trying to set a radio button based on a value in a single line field that has been populated from a lookup. I have only managed to get the radio button to be set if I click in the field and out again (triggering change).
I know this code is over the top, but I was trying to get one of the lookup triggers to work at least. Any help will be appreciated.
$(document).ready(function () { var a = ''; $(document).on("onloadlookupfinished", function () { $('.filledField input').blur(function () { var value = $(this).val(); $('.radio').find($('input[value="' + value + '"]')).attr('checked', true); }); }); $(document).on("lookupstarted",function(event) { $('.filledField input').blur(function () { var value = $(this).val(); $('.radio').find($('input[value="' + value + '"]')).attr('checked', true); }); }); $(document).on("lookupcomplete",function(event) { $('.filledField input').blur(function () { var value = $(this).val(); $('.radio').find($('input[value="' + value + '"]')).attr('checked', true); }); }); });