I have a div that is initially hidden with the style display set to none. Later, I change the display property to null and move it to appear after another div. However, the hidden content is now being displayed. Can anyone provide assistance with this issue?
$("#SecondDiv").css("display : null");
$("#SecondDiv").insertAfter($("#FirstDiv"));
<div class="note note-warning" id="SecondtDiv" style="display: none">
<div class="block-warning">
<h4 class="block"> <i class="demo-icon icon-attention-1 fa"></i> Error! </h4>
<p>Settings are not updated.</p>
</div>
</div>
<div class="table-responsive" id="FirstDiv">
Thank you for your assistance.