syntax error missing closing }
I get this error message:
SyntaxError: missing } after property list
right before the ↵$('#taskform').
I checked all opening and closing () & {} in a syntax checker so i can't figure out where the missing } is?
------code--------
$(document).ready(function() {
$.ajax({
url: 'ajax/get_todosx3.php',
dataType : 'json',
success: function(data) {
alert(success);
var list_start ='<li "class" = "todo-list" >';
var list_end ='</li>';
var checkbx ='<input type="checkbox" id="task" checked="false" />';
var delRow ='<input type="button" value="Delete" class="btnDelete" onclick="deleteRow(this)" />';
$('.result').html(data);
alert('Load was performed.');
var rows= ' ';
$.each(data, function(idx,item) {
rows+= list_start + checkbx + item.todo + ', ' + item.name + item.date + delRow +list_end;
});
$("ul").append(rows);
} //end success
}) //end ajax
$('#taskForm').submit(function(e) {
e.preventDefault();
submitForm();
}); //end document ready
the url if you want to check it out
janisrough.dyndns.biz/todos17.html
tia,
jrough