Hi, I ran into a problem with this piece of code:
- $('#your_songs').live('click', function(){
- alert('1');
- $.getJSON('yourSongs.php', function(data) {
- alert('2');
- alert(data.links);
when I click my button it alerts '1' then it throws an error =
Uncaught SyntaxError: Unexpected token :(in crome)
Invalid Lable(in firefox)
alert('2'); is never fired. that puts the error into the highlighted line.
And I know that line works because i have the exact same code in a different spot only the php file is different.
Does that mean my php is messed up?
Thanks for feedback in advance