-2

I keep getting a parse error on this line but I'm not sure what to parse since this is a variable declaration

var dp =   element.find('.input-group-btn').datetimepicker({<br>       keepInvalid: true,<br>       pickTime: scope.snIncludeTime === true,<br>       format: scope.format,<br>       locale: g_lang,<br>       sideBySide:   true,<br>       language: g_lang<br>   }).on('dp.change', onDpChange); 

This was the original line that I configured:

var dp = element.find('.input-group-btn').datetimepicker(config).on('dp.change', onDpChange);

I keep getting this error: JavaScript parse error at line (345) column (62) problem = invalid property id (; line 345)

Teemu
  • 22,918
  • 7
  • 53
  • 106
sml
  • 1
  • 1
  • Can you please be more specific what are you trying to achieve and may be a more expicit snippet would help. – Amit Apr 20 '20 at 16:14
  • Also your code is formatted incorrectly; I suspect those `
    ` elements are intended to format the code itself.
    – Pointy Apr 20 '20 at 16:16
  • That is not a native error message, what is the used framework? – Teemu Apr 20 '20 at 16:26

1 Answers1

0

Are you sure that is how your code looks? If that was not a copy paste mistake, those <br> shouldn't be there.