469,622 Members | 1,445 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

OT-client-side question

I know this isn't the right forum, but this is driving me crazy, and I don't
think I'm very off, probably one little thing is keeping me from being
successful.

I'd like to have two radio buttons, and the first one will be selected by
default when the page loads. When it is selected, the two checkboxes below
the second radio button should be invisible. The only way to see the two
checkboxes is when the second radio button is selected. If you select it and
then go back to the first radio button, those checkboxes should disappear
again.

Here's what I have so far; I think I'm pretty close, but I am missing
something, don't know what:

In the <head> section:

<style>
#ReportTypeDiv {
display:none
}
</style>

then(watch the wrap):

<input type='radio' id='ReportType' name='ReportType' value='Summary'
onclick='document.getElementById("ReportTypeDiv"). style.display=this.checked
?"block":"yes" ' checked>Show Summary Info
<input type='radio' id='ReportType' name='ReportType' value='Details'
onclick='document.getElementById("ReportTypeDiv"). style.display=this.checked
?"block":"none" '>Show Detailed Info

<div class="ReportTypeDiv" id="ReportTypeDiv">
<!--if showing details, then choose whether to display internal notes, the
notes seen by the customer, or both-->
<input type='Checkbox' name='ShowInternal' value='true'>Show Internal
Notes
<input type='Checkbox' name='ShowExternal' value='true'>Show External
Notes
</div>
</form>


Jul 19 '05 #1
5 1400
middletree wrote:
I know this isn't the right forum, but this is driving me crazy, and
I don't think I'm very off, probably one little thing is keeping me
from being successful.


Sorry, you've already used up your OT question for the year. :-)
You'll have to post to the appropriate group. Look for one with "dhtml" in
its name.

Bob

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
Those groups get very little attention, from what I can tell. Oh well.
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
middletree wrote:
I know this isn't the right forum, but this is driving me crazy, and
I don't think I'm very off, probably one little thing is keeping me
from being successful.


Sorry, you've already used up your OT question for the year. :-)
You'll have to post to the appropriate group. Look for one with "dhtml" in
its name.

Bob

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #3
middletree wrote:
Those groups get very little attention, from what I can tell. Oh well.

Try .scripting.vbscript

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4
Really? Wouldn't have thought of that, since this is client-side code.

"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
middletree wrote:
Those groups get very little attention, from what I can tell. Oh well.

Try .scripting.vbscript

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #5
middletree wrote:
Really? Wouldn't have thought of that, since this is client-side code.

That newgroup has a lot of activity and they happily deal with all questions
about vbscript, including client-side vbscript.

Oh, wait! Are you using jscript? Let's see ... oh, yes, so you are. make it
..scripting.jscript.

Bob

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

145 posts views Thread by David MacQuigg | last post: by
10 posts views Thread by gn | last post: by
18 posts views Thread by IMSHURKKPWII | last post: by
248 posts views Thread by Generic Usenet Account | last post: by
17 posts views Thread by hugo27 | last post: by
15 posts views Thread by yxq | last post: by
95 posts views Thread by hstagni | last post: by
19 posts views Thread by Hallvard B Furuseth | last post: by
24 posts views Thread by Adam | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.