javascript - Cant find the issue with my synax "Uncaught SyntaxError: Unexpected token <" -
i messed in syntax somewhere im still kinda new ajax, jq
i cant figure out syntax error is, ive been looking @ time now, , thought ask guys.
$(function (){ var $beskederul = $('#beskeder'); //var $besked = $('#besked'); function addnybesked(data){ $beskederul.append('<li>['+ data.tid +' besked: '+ data.besked + '</li>'); } $.ajax({ type: 'get', url: '../mmudkast/code/getmessage.php', success: function(beskeder){ beskeder = json.parse(beskeder); $.each(beskeder, function(i, data) { addnybesked(data); }); }, });
Comments
Post a Comment