javascript - I want to run this jquery on load not how it is, how should I enter the code? -
i have code runs when clicks yes
<a id="question-submit" class="cta cta-submit corners" onclick="jquery('#user-process').modal('show');"> <span>yes »</span> </a> i want run when page loaded if clicked yes.....how this, can't figure out, thanks.
<script> jquery(function() { jquery('#user-process').modal('show'); }) </script> jquery() adds on-load event.
Comments
Post a Comment