Forum Moderators: open
I have a form which uses ajax to POST to a script, but I'm not sure what to use for my "action" form attribute. This is how the form is layed out now:
<form>
...
<input type="button" value="submit" onclick="process()" />
</form>
Since the form is processing with the onclick event, I don't know what to put for <form action="?">, and this attribute is required for xhtml compliance. Any ideas?
Thanks.
If you have no such fallback, you should either:
1) strongly consider adding a fallback
2) make sure that the entire form is added to the page using JavaScript, with noscript tags with explanation for those with JavaScript disabled