title: Submit form automatically that is present inside a javascript
body: <p>I have below code that I want to submit automatically on page reload. This is giving showing me a button "pay now" but I want to click that button automatically. I think that button is part of src="https://checkout.razorpay.com/v1/checkout.js". Can someone help me with this? Thanks!</p>
  
  <pre><code>&lt;div class="container" name="payment_submit"&gt;
        &lt;form action="{% url 'razorpay_response' %}" method="POST"&gt;
            {% csrf_token %}
            &lt;!-- Note that the amount is in paise = 50 INR --&gt;
            &lt;input type="hidden" name="creator" value="{{creator}}" /&gt;
            &lt;input type="hidden" name="sub_value" value="{{sub_value}}" /&gt;
            &lt;script
                    src="https://checkout.razorpay.com/v1/checkout.js"
                    data-key="{{rzr_id}}"
                    data-subscription_id="{{sub_id}}"
                    data-name = "My Billing Label"
                    data-description ="Auth txn for {{sub_id}}"
            &gt;&lt;/script&gt;
            &lt;input type="hidden" value="Hidden Element" name="hidden"&gt;
        &lt;/form&gt;
    &lt;/div&gt;
  </code></pre>