On Tuesday, July 9, 2019 at 7:08:48 PM UTC-7, Quang Lam wrote:
>
> i have multiple <div> in my html page and i dont want all of them to be
> executed when the page is loaded. is there any way that we can delay it
> until the user right click on the context menu. i dont want to use
> selector.show or selector.hide. because i want those <div> to be executed
> after the user right click
>
The way I do it is to use [style].visiblity = "hidden", and toggle it
document.getElementById("thisone").style.visibility = visible;
and do that by using an onclick handler.
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/edd2271a-97ec-424d-a0a6-1edd4114e417%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.