0
<div class="tasksMobile" id="headerDTMobile2">
<div class="divSubTaskMobile" id="divDefaultTask4">
<div class="divSubTaskMobile" id="divDefaultTask3">
<div class="divSubTaskMobile" id="divDefaultTask2">
<div class="tasksMobile" id="headerDTMobile3">

This query does not give html of three <div> elements inside of #headerDTMobile2:

$("#headerDTMobile2").nextUntil(".tasksMobile").html()
BenM
  • 52,573
  • 26
  • 113
  • 168

1 Answers1

-1

Notice this note from jQuery docs:

As of jQuery 1.6, A DOM node or jQuery object, instead of a selector, may be passed to the .nextUntil() method.

Which version of jQuery are you using.

Eduardo Yáñez Parareda
  • 9,126
  • 4
  • 37
  • 50