Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 September 11th, 2007, 11:14 PM
Authorized User
 
Join Date: Aug 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Enabling form elements on click of checkbox

Hi again!
I am facing a new problem in my application. I've made a form with 10 checkboxes.Each checkbox has 3 fields associated with it..one is the Name(like Company Name,Employee Designation etc),a drop down list and a text box...Now what I want is to enable the fields on click of corresponding checkbox...initially all the fields are set to disabled.

What I am tryin to do with it is-- I've made a form thru which user wud be able to select fields according to his requirement and then the application will query database and search the results for him.

What shud be my code to implement this task?? Can neone help?
 
Old September 12th, 2007, 02:29 AM
Authorized User
 
Join Date: Sep 2007
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

To enable disabled fields would require javascript. Each element needs its own ID property so as you can reference the object.

*not sure how familiar you are with javascript coding but thats what you need....an onclick event for the checkbox that can set the property to the corresponding field to enabled.

http://mynameissteve.com
 
Old September 12th, 2007, 02:53 AM
Authorized User
 
Join Date: Aug 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx..I was using Javascript only...
But neways...I got the solution...
Thanx once again! :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
DGV CheckBox Click Issue obrienkev C# 2005 1 December 17th, 2007 06:04 AM
Checking a checkbox on click of a row in a table nkrust Javascript How-To 1 January 13th, 2007 11:56 AM
Enabling/Disabling Form Controls lbyii Javascript 6 October 13th, 2006 07:36 AM
Enabling Checkbox ninel Pro JSP 1 April 27th, 2006 04:25 AM
Enabling and Disabling form elements socoolbrewster Javascript How-To 4 February 21st, 2006 04:45 PM





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