By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,625 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,625 IT Pros & Developers. It's quick & easy.

how to disable all tags?

P: n/a
hello,

I have a div which includes many others tags (a, input, any others
links).
How can I disable the whole div? I want to any of the included tags may
not be enable.

--
regards and thanks for help, sorry for my english

Jul 6 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
you can use <div style="Display: none;">

and for again visibility
<div style="Display:block">
and in Javascript

document.getElementById("YourDivID").style.display = "none";
siara wrote:
hello,

I have a div which includes many others tags (a, input, any others
links).
How can I disable the whole div? I want to any of the included tags may
not be enable.

--
regards and thanks for help, sorry for my english
Jul 6 '06 #2

P: n/a

Free BSD napisal(a):
you can use <div style="Display: none;">

and for again visibility
<div style="Display:block">
and in Javascript

document.getElementById("YourDivID").style.display = "none";
yes, of course, but I want: giv is visible and every click on it has no
effect (and maybe visibility of the div is more gray)

--
regards
Artek

Jul 6 '06 #3

P: n/a
so dude ... cant understand what you want to do here ????

if you want to handle the click event on the div use onclick method

regards
Free BSD
siara wrote:
Free BSD napisal(a):
you can use <div style="Display: none;">

and for again visibility
<div style="Display:block">
and in Javascript

document.getElementById("YourDivID").style.display = "none";

yes, of course, but I want: giv is visible and every click on it has no
effect (and maybe visibility of the div is more gray)

--
regards
Artek
Jul 6 '06 #4

P: n/a

Free BSD napisal(a):
so dude ... cant understand what you want to do here ????

if you want to handle the click event on the div use onclick method

ok, thanks

Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.

--
regards
Artek

Jul 6 '06 #5

P: n/a
siara wrote:
Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.
Make a div with this style:
position:absolute;
z-index:100;
width:100%;
height:100%;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
background-color:#000000;

make it visible as Free BSD explained.
Don't forget to make z-index of your pop up greater.

Jul 6 '06 #6

P: n/a

me****@gmail.com wrote:
siara wrote:
Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.

Make a div with this style:
position:absolute;
z-index:100;
width:100%;
height:100%;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
background-color:#000000;

make it visible as Free BSD explained.
Don't forget to make z-index of your pop up greater.
thanks a lot, I will test it right now:)

Artek

Jul 6 '06 #7

P: n/a
On 6 Jul 2006 10:46:46 -0700, "siara" <ar*********@gmail.comwrote:
>
me****@gmail.com wrote:
>siara wrote:
Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.

Make a div with this style:
position:absolute;
z-index:100;
width:100%;
height:100%;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
background-color:#000000;

make it visible as Free BSD explained.
Don't forget to make z-index of your pop up greater.

thanks a lot, I will test it right now:)

Artek
If you want to disable form objects like what you saw in Google, then
add a 'disabled' attribute to the objects with a value of 'disabled'.
It should work for everything.

JohnnySpasm

Aug 17 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.