+ 6

Input type="checkbox"

If in input element the value="" atribute is not given any values i.e.,1,2,3,4,etc then still it will be a multiple select or not?

6th Jun 2019, 10:59 AM
XENOTOXIN
XENOTOXIN - avatar
5 Answers
+ 7
Yes i got it thank you but in case of your other part please explain in brief
6th Jun 2019, 12:18 PM
XENOTOXIN
XENOTOXIN - avatar
+ 6
Xenotoxin There is a difference between what is rendered client-side via the browser (i.e. what the user sees) and what gets sent to the server, so the user might think they checked two or more items, but when they hit submit, the server will only receive "" for the value, which isn't very meaningful. If you are using the checkbox as a toggling mechanism and not for its originally intended purpose as a form input, then you won't need to worry about whether or not it has a value to pass to the server. I hope this helps. 😅
8th Jun 2019, 8:43 AM
Janning⭐
Janning⭐ - avatar
+ 5
That is what checkbox are meant for. Multiple selections. But if value attribute will be not present you won't actually know what you selected.
6th Jun 2019, 11:06 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 5
"you won't act........." I mean
6th Jun 2019, 12:21 PM
XENOTOXIN
XENOTOXIN - avatar