+ 2
Hey,what is the practical use for CHECKED attribute in the buttons?
What is it used for?
3 odpowiedzi
+ 2
Thank you but what is the practical use for this?i mean,why would anybody wanna pre-checked an option when that depends on the user input?
+ 1
checked attribute use in input type checkbox. It's use to check the checkbox and checkbox use to select multiple value so if you do checked = "checked" then you can get checked value.
For example;
<input type = "checkbox" name = "human" value = "Male" checked = "checked" />
<input type = "checkbox" name = "human" value = "Female" />
In this case you will get only checked value.
+ 1
Oh Boi! Sometimes we don't want to select then default value should go in database. That's why we put one option pre-checked.