Iterating through survey

An example of iterating through survey using jQuery's $.each

by dandiebolt

HTML

<script src="https://www.quickbase.com/db/bfx7sqpm8?a=dbpage&amp;pagename=SurveyData.js"></script>
<div id="output"></div>

JavaScript

$.each(survey,function(index,response){
    
    $("#output").append("<b>response number: " + index + "</b><br/>");

    $.each(response,function(item,value){
        $("#output").append("&nbsp;&nbsp;&nbsp;" + item + " = " + value + "<br/>");
    });
});