0

Here is a simple HTML:

  <div id="outer">
    <div id="m1">
            <div id="m11"></div>
            <div id="m12"></div>
            <div id="m13"></div>
            <div id="m14"></div>
    </div>
 </div>

I expect the following JQuery to change the content of div with id m14 to be "Hello". It is not.

  $('#outer #m1:last-child').html("Hello");

Where am I going wrong?

asinix
  • 966
  • 1
  • 9
  • 22

0 Answers0