Warum funktioniert nicht?Javascript/Coffeescript append TypError: ist keine Funktion
Es funktioniert, wenn ich Variable msg für einen Zeichenfolgewert ändern.
Code:
console.log full_messages # Array [ "text to be displayed" ]
for msg in full_messages
$('#error_explanation ul').append('<li>'+ msg +'</li>')
Fehlermeldung:
TypeError: msg is not a function
@tholo Meinst du etwa "$ ->"? Falls ja! Ja, so ist es. –
'full_massages [msg]' – tholo
$ ('# error_explanation ul'). Append ('