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(&#39;#user-process&#39;).modal(&#39;show&#39;);">     <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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -