- 1

How to show/hide <p> if user check the checkbox ?

How to show/hide <p> if user check the checkbox using HTML/JavaScript or in android

27th Jun 2017, 9:51 PM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar
2 Respostas
27th Jun 2017, 10:03 PM
Maz
Maz - avatar
+ 7
https://code.sololearn.com/WbPgfipKSm3n/#html The principle is to use the pseudo selector :checked, if necessary by combining it with the :not() one, and the + operator, use to select the next sibling element (not child). Some cases are more harder to solve to find the correct html structure / css path selectors ways... even times there's no solution... but you can study more complex case, combining with use of <label> properties in this tutorial: https://code.sololearn.com/WHJcalsIWiiZ/?ref=app#html
27th Jun 2017, 11:55 PM
visph
visph - avatar