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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -