this post will show you what you can do to make a checkbox in a html form not change [2725], Last Updated: Mon Jun 24, 2024
Webune
Wed Mar 20, 2013
0 Comments
568 Visits
today i had this form i was doing and i needed to show it if it was checked but i didnt want the user to change it if they did not have the proper permissions.
lets say for some strange reason i have this form and only the administrator can unchecked it but i want to show the option.
like this for example:
Delete Account:
in the above example, you can check and uncheck to delete account, so this is what i wanted to do
Delete Account:
as you can see, i am forcing a checked on the checkbox, and the user cannot change it. so how did i do it, here is the code: