0

I want to show my nifty window modal popup on page load. This is my nifty window popup modal code:

<div class="md-modal md-effect-1" id="modal-1">
    <div class="md-content">
        <h3>Modal Dialog</h3>
        <div>
            <p>This is my first nifty modal window. </p>

            <button class="md-close">Close me!</button>
        </div>
    </div>
</div>

Thanks in advance.

ataravati
  • 8,891
  • 9
  • 57
  • 89
Nripendra Ojha
  • 379
  • 2
  • 14

1 Answers1

0

I've looking in to the source code of the demos, and I believe that this would do the trick:

$(function() {
     $('#modal-1').addClass('md-show');
});
GreyRoofPigeon
  • 17,833
  • 4
  • 36
  • 59