modal open only once while the page is not closed

Asked

Viewed 35 times

0

how to do for when the page is reloaded the modal I created not open again, but when I close the page and open again the modal open again as I do it?

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close"  data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>

      </div>
      <div class="modal-body">
        <div class="form-group col-md-6"><img src="images/send.png"></div>
        <div class="form-group col-md-6"><h3 align="center" id="cor">Deseja Receber Nossas Novidades em <br>Primeira Mão </h3></div>
        <div align="center" class="form-group col-md-12">
            <h4 align="center" id="cor">Inscreva-se para receber novidades</h4>
            <input type="text" name="nome" id="nome" placeholder=" Digite seu nome completo." size="25">
            <input type="email" name="email" id="email" placeholder=" Digite seu E-mail." size="30">

        </div>
        <div align="center" class="form-group col-md-12">
            <button id="primary" class="btn">Cadastrar</button>
        </div>
      </div>
      <div class="modal-footer">  
      </div>
    </div>
  </div>
</div>
  • You have his Jsfiddle?

  • have no friend

  • i only created a Function and inside dei show in modal I only have this and logico the part php that will receive this modal

  • Fiddle: http://jsfiddle.net/randrade/wscbohdy/

  • 7

    Similar question http://answall.com/questions/12639/popup-abram-apenas-1-vez-ap%C3%B3s-be-closed-even-after-recharge-p%C3%A1gina? Rq=1

  • That’s right @Pedrocamarajunior. There’s already an answer to your question Leandro Costa

  • obg by comment then I will give a read on the existing question Valew

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.