javascript - How do you force a Jquery Mobile popup to open using php? -


basically, trying force 1 of jquery mobile popups open when isset($_post["submit"]) triggered.

note having popup load on page load not work in situation, must activated when form submitted.

for example:

<?php if(isset($_post['submit'])) {        //other stuff       //force open popup } ?> <form method='post' action='self.php'>    <input type='submit' name='submit' value='submit' /> </form> <a href="#popup" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="check" data-theme="a" data-transition="pop">popup</a> <div data-role="popup" id="popuplogin" data-theme="a" class="ui-corner-all">     <!-- popup contents --> </div> 

thanks in advanced!

can try 1 ??

<script type="text/javascript">  $('#form').on('submit', function () {     $("#popuplogin").popup("open")   }); </script> 

credits omar correcting me :)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -