简体   繁体   中英

Checkbox update page (show more info if checked)

I am trying to figure out how to list 3 check-boxes at the top of a page that, when checked, auto reveal more info on the page.

Using php if I can hide the info, but how will it update page? I am guessing some form of java.

you need JavaScript - http://jsfiddle.net/JQRG7/

and you don't have to hide your content with PHP, you can do it with CSS. However if you really don't want to have that additional info on your page(if page size an issue, for example) then you have to use Ajax to load it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM