5👍
✅
Your template does not have the <form></form>
tags, without those there is no form to submit.
You should write:
<form id="MyForm">
<div class="controls">
...
<input type="submit" value="Say hello" onclick="sendEmail(this);">
</div>
</form>
That should do it, but in case it doesn’t (I realy think it will), you can add this to your sendEmail
function:
document.getElementById("myForm").submit();
- [Django]-Django Unknown system variable 'TRANSACTION' on syncdb
- [Django]-Passing data to Google Charts with Django
- [Django]-How to create a new table using model
- [Django]-How can I connect my existing external PostgreSQL Database to automatically create my Models.py for a Django Rest Framework?
Source:stackexchange.com