I have a jQuery script that collects the values of checkboxes in variables:
var 1_val = $("input[type='checkbox'][name='val_1']").prop( "checked" );
var 2_val = $("input[type='checkbox'][name='val_2']").prop( "checked" );
Then I output these in a message to be sent via e-mail:
...<strong>Value 1</strong>: 1_val + '<br /><strong>Value 2</strong>: ' + 2_val + '<br />...
But in the message body I get the string with booleans true/false, and I would want to make some more user-friendly message like Yes/No. How can I change it?