Using javascript/jQuery to listen for checkboxes being checked or not
Below is some javascript I use to determine the state of a checkbox field (selected or not):
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var that = this;
var qid = this.questionId;
var objCheck = jQuery( "input[id='QR\\~"+qid+"\\~1']" ); // this is just so we can listen for changes in the checkbox selection
var objCheckLabel = jQuery( "label[for='QR\\~"+qid+"\\~1']" ); // the 'visual' part of the checkbox that tracks if a box is checked
var foo = function(e) {
if (typeof e.isTrigger == 'undefined') {
var mV = (objCheckLabel.attr('class'));
var n = mV.search("q-checked"); // since the checkbox label 'class' is the only thing we can used to tell if ...
// the checkox is selected then we need to parse the class values to look for 'q-checked'
if (n > 0) alert(n); // alert if the checkbox is selected
}
}
objCheck.on('change',foo); // listen for changes in the checkbox selection
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

This is the survey question:
My own code just looks for the element that has a text box associated to it and then deletes the text in it but for the 10th button I decided that I would hard code it for simplicity. Please be aware that I've put this code together from other threads and forums. I know VBA but am very much a beginner in HTML and Javascript!