The easy way is to relate the checkbox with the text's container using the ID, class, or some other attribute. Actually I'd use class, so you can assign the same name to each (IDs should be unique).
PHP Code:
<input type="checkbox" class="chk100"><span class="chk100">Text1</span><br />
<input type="checkbox" class="chk200"><span class="chk200">Text2</span><br />
<input type="checkbox" class="chk300"><span class="chk300">Text3</span><br />
<input type="button" id="btn">
Then find all checked checkboxes and get the text for each:
PHP Code:
$(function() {
$("#btn").click(function() {
var textArray = [];
$("input:checked").each(function() {
textArray.push($("span." + $(this).attr("class")).text());
});
//just to demonstrate that values are now in the array
for (var i in textArray) {
alert(textArray[i]);
}
});
});