Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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, 05:30 AM
Authorized User
 
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default RadioButton Checking-Without Submitting Forms

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.These All to Be Happened Before Submitting Form.befor Submitting I have To Verify As the field clicked ...

   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:41 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

   You can do like

function frm_onsubmit(){

if (frm.selFresher.options(frm.selFresher.selectedInd ex).value == 1 || ...==4){
   frm.selYrsOfExp.selectedIndex=0;
You isert an item in this select control with 0 value
or you can make it hidden
frm.selYrsOfExp.style.visibility="hidden";

}

}

And, you do u r scripting at the submitted page for further process.
Hope this helps. Or u post it back with u r actual requirement.


--------
Rajani






Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Forms for Submitting Issues to Team Foundation Baby_programmer BOOK: Professional Team Foundation Server ISBN: 0-471-91930-6 0 July 28th, 2008 06:01 PM
select either textarea or radiobutton pavani ASP.NET 2.0 Basics 1 March 21st, 2008 04:35 AM
User Forms & Checking Input JezLisle Excel VBA 0 February 6th, 2008 08:34 AM
RadioButton in Datagrid FLEX abhishekchess1 Flex 1 January 7th, 2008 02:11 AM
RadioButton in Datagrid FLEX abhishekchess1 ASP.NET 1.0 and 1.1 Professional 3 September 28th, 2007 01:19 AM





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