Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transfer the value from a kendo checkbox to another one

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'));

like image 593
Developer2009 Avatar asked Oct 15 '13 05:10

Developer2009


1 Answers

Use .prop()

var isChecked = $('#checkbox1').is(':checked');
$('#checkbox2').prop('checked', isChecked);
like image 116
ahren Avatar answered Sep 18 '22 12:09

ahren