Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2004, 03:57 AM
Authorized User
 
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checking Radio - Without Submiting Form

Hi Guys !
I am Here With A Querry ..
I Have Years Of Experience as <select name="yr">
                                 <option value="1Yr">1Yr</option>
                                 <option value="2Yr">2Yr</option>
                              </select>

I have Input That is
Fresher Or FinalYear or Experienced as Radio button.

My Question Is That If The Person Clicked Fresher Or Final Year Then The Years Of Experience Field Should Be Disabled.
If The Person Clicked Experienced Then The years Of Experience Field Should Be Shown To Him.

   I need A Help ...Plz Make It Quick It Is Urgent
plz Give Me A Solution...
Bye For Now..



MuthuKumar.AL
__________________
MuthuKumar.AL
 
Old December 19th, 2004, 10:54 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default



 This post is already appeared in another topic.

Dont post at several topics.



 
Old December 20th, 2004, 04:27 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script>
function disableExperience()
{
    if(document.fTest.Category[0].checked)
    {
        document.fTest.sExperience.selectedIndex = 0
        document.fTest.sExperience.disabled = true
    }
    else
    {
        document.fTest.sExperience.disabled = false
    }
}

</script>
<script event="onmousedown" for="fTest">
    disableExperience()
</script>
</HEAD>
<BODY>
<form name=fTest>
Category:
<input type=radio name=Category value=0 onclick="disableExperience()">Fresher</option>
<input type=radio name=Category value=1 onclick="disableExperience()">Experience</option>
<br>
<br>
Experience:
<br>
<br>
<Div id="dExperience">
<select name=sExperience>
<option value=0>Select</option>
<option value=1>1 Year</option>
<option value=2>2 Years</option>
</select>
</Div>
</form>

<P>&nbsp;</P>

</BODY>
</HTML>


 
Old January 4th, 2005, 05:22 AM
Authorized User
 
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx Suresh! your pains to code me are appreciated ..

bye for now and if errors persist i will post it further.

MuthuKumar.AL





Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight text using form radio aspless Javascript 9 June 25th, 2008 03:50 AM
Form changes with radio button selection jekel13 PHP How-To 16 February 17th, 2006 04:56 PM
checking string length for form validation Tachyon Beginning PHP 1 June 14th, 2004 08:16 PM
Form validation and email checking visionary Beginning PHP 9 July 15th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.