I recently had to do a quick bit of coding to only accept data from a form if JavaScript was enabled.
This example starts with a form that has no action and a disabled submit button. When jQuery’s .ready() fires though it enables the submit button and attaches the appropriate action.
Please note the example file is in ColdFusion so your mileage may vary slightly for your own use.
Thx for the example. How would i post this to my db table via coldfusion, hard to find a simple clear example.
Here is a simple example. Hope you find it useful: https://csimmons.dev/blog/2010/05/saving-to-a-database-with-coldfusion-using-jquery/