我正在一个网站上使用Stripe/Checkout来接受支付。Stripe在这方面相当简单,因为他们提供以下脚本嵌入网页:
<form id="monthly" action="/subscribe" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_xxxxxxxxx"
data-image="http://mywebsite.com/assets/img/logo_raw.png"
data-name="My Website"
data-description="Monthly Subscription"
data-amount="6900"
data-email="email@example.com"
data-allow-remember-me=false
data-label="Subscribe" >
</script>
</form>
我希望能够预填电子邮件地址值(data-email =“email@example.com”),并使用我在custom.js jQuery脚本中拥有的变量。我熟练掌握jQuery,但我能否使用jQuery修改此嵌入式脚本?