Hy! I want to get the value from a checkbox, and set another one with that value. I used jquery:$('#CommercialName').val($('#CommercialName2').is(':checked'));
Use .prop()
var isChecked = $('#checkbox1').is(':checked');
$('#checkbox2').prop('checked', isChecked);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With