In JavaScript, strings cannot span multiple lines, so to encode a multiline string, you should do the following:
var s = "This is a\n" + "multiline\n" + "string.\n";
Note that newline characters ( \n ) are only required if you really need lines in a line. Your example would look like this:
$('#id, .class, .class1, .class2, .class3, .class4, .class5, ' + '.class6, .class7').click(function() {
maerics
source share