I have two html forms on a page. Each html form has a django form
associated.
One form has validations.
When I submit the form (form1) which does not have validations, it
submit the other form (form2) on page as well and triggers the
validation on the form2. I do not want the form2 to validate on form1
submit. How to achieve that ?
I am doing form submit in javascript like this
document.getElementById("id_project").onchange = submitForm;
function submitForm(){
document.form1.action='pages url';
document.form1.submit();
}
where id_project is a dropdown in form1.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---