I have a checkbox
<input id="Run" name="Run" value="true" type="checkbox">
<input name="Run" value="false" type="hidden">
and When I try to get the value it always returns false
$('#Run').val()
"False"
I tried to get the value using .prop
$('#Run').prop('checked')
but I still get the value as false
I also tried
$('#Run').on('change', function () {
$('#Run').val($(this).is(':checked') ? 'True' : 'False');
});