Hi,
I have a form with multiple Radio Buttons and Check boxes. The customer wants the ability to amend the form after it is submitted. Each form has a value assigned to it which is unique so i will store all the information in SQL and then on the form have a drop down to select the number then populate all the fields. I am having difficulty getting around populating the Radio Buttons and Check boxes from values.
The Technical Design Number is the selection of numbers from a drop down, this will be the trigger for the rest of the forms. TYP is the value which is stored in SQL "New Customer" or "Existing Customer" css HiddenField. Type of customer is the Radio Button i want to automatically populate, it's css is RadioBtn.
I have read a few posts on answers and tried, but could not manage to get it right. Could anyone see what i am missing in my code below please?
$(document).ready(function(){ $('.HiddenField input').on('change',function(){ var rbt = $('.HiddenField input').val($(this).val()); $('.RadioBtn input:checked').val(rbt); }); });