Mission: To detect what checkboxes are checked and add links based on that. $(document).ready(function(){ $("form input:checked").each(function (i) { linkURL = $(this).parent().next("label").text(); $("#destLinks").append("<a href='" + linkURL + "'>" + linkURL + "</a><br />"); }); });