var table = $('#anwesendmo').DataTable( { with variable does not work

var table = $('#anwesendmo').DataTable( { with variable does not work

Hildeb67Hildeb67 Posts: 69Questions: 19Answers: 1

I have this Code rows

var table = $('#anwesendmo').DataTable( {
........
} );

This work perfect but with the variable "anwesenheitstabelle" does not work

var anwesenheitstabelle = '#anwsendmo';

var table = $(anwesenheitstabelle).DataTable( {
..........

can someone help me here?
Thanks and regards Christian

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    Looks like the spelling of anwesendmo is different between the working and non-working cases.

    Kevin

  • Hildeb67Hildeb67 Posts: 69Questions: 19Answers: 1

    Great thanks for the hint.

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    You've marked Kevin's answer as not resolving the issue - is there a further problem, or was it just the wrong button?

    Allan

  • Hildeb67Hildeb67 Posts: 69Questions: 19Answers: 1

    Sorry was the wrong Button

Sign In or Register to comment.