When should I use [0] to dereference a returned selected result?
Hello all,
- var variableA = $("#sampleID"); // case A
- var variableB = $("#sampleID")[0]; // case B
- // apply a function call to variableA or variableB (i.e. css(...))
The question is when I have to use the case B and when I can use case A without causing problems?
Thank you