I have quite a few forms on my site that are submitted using jQuery ajax. When I recently disabled JavaScript to do a bit of testing, I noticed these form submit the usual way.
Is there anything that can be done to prevent them from being submitted at all when javascript is not available or disabled?
My forms do not have a method
or action
. These are specified in ajax itself. I use a button
instead of
Anything I can do to stop them from being submitted?
I know I can generate/enable buttons and things after the page loads, but what if a user were to deliberately disable JavaScript after the page loaded?