Change Radio button on Selectbox change
Confluence User - 25 Jan, 2023
Hi
i have a Selectbox - Agency, on selection change i wantt to evaluate if its not MyCompany then the Radio Button - Status to change to 'Contingent'
im useing the follwoing code but its not working, the alret pop up when the select box is changed but the radio button does not get updated
<script type="text/javascript">
$('[name$=Agency]').change(function()
{
var mySelectedValueId = $(this).find(':selected').val();
$('[name$=SelectedValueId]').val(mySelectedValueId);
if (mySelectedValueId !== "MyCompany")
{
alert(mySelectedValueId);
$("#Status").prop("Contingent", true);
$('input[name=Status]:checked').val("Contingent")
}
});
</script>
regards
forms;javascript