I'm doing some form validation, and am currently disabling the submit button like this:
$("#button").prop('disabled', true);
I'm wondering what the best practice is for disabling a button, though. Surely there's no point in doing server-side validation via AJAX if you're just disabling a button with js/jQuery - a user could easily un-disable the button in their browser and be on their way.
What's the safest way to go about this?