[Solved] How to set a Permanent variable with jquery [closed]


You won’t be able to write directly to the database from JavaScript. You’ll have to send the data back to the server (presumably using the submission of the sign-up form) and, in the server-side form handler, you can store the value in the database. A full implementation is beyond the scope of a simple question and answer; you’ll need to learn some basic server-side programming.

If you want a client-side only solution, you may be able to store the value in a cookie using JavaScript so that you can read it on subsequent page views.

solved How to set a Permanent variable with jquery [closed]