+ 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?
5 RĂ©ponses
+ 7
Yes i got it thank you but in case of your other part please explain in brief
+ 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. đ
+ 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.
+ 5
"you won't act........." I mean