JSLint is throwing problems telling me to Combine this with the previous 'var' statement but I'm not sure how I'd do it correctly with my code:
var len = results.rows.length, i;
//loop around each record in the database
for (i = 0; i < len; i++) {
var singleRecord = results.rows.item(i);
//create list
var individualRecord = '';
individualRecord = '<li><a href="#info" id="anIndividualRecord" data-key="' + individualRecord.id + '" >';
it's telling me to combine the three var statements in there but if anyone could advise me as to how to do this without creating more problems, that would be much appreciated.
Do it all within your top
vardeclaration