I need to pass a value of a field to pre-select a radio button value that exists within a collection. User's need to be able to change it and as rows are added to the collection, previous rows should not be affected.
I can get to the button group and set it using:
$("input[id^=Field348][value=" + s + "]").prop("checked", true);
but this, of course changes all of radio groups in the collection.
I have tried several different ways to to filter to last, but none have worked so far. The following seemed to be the most promising, but neither worked.
$('#q340 ul:last').find("input[id^=Field348][value=" + s + "]").prop("checked", true); $('#q340 ul:last').find("input[id^=Field348]").val(s).prop("checked", true);
As always you're help is appreciated.