Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
checkbox must be ticked to enable another input? how do i do it
Old 09-20-2007, 03:35 PM checkbox must be ticked to enable another input? how do i do it
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
hi,

i would like to have a thing with tickbox input, and only if the input has been ticked do i want the input to be enabled.

fairly simple, but i am not a javascripter so how do i do it

TP for gd answer(s)
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 09-20-2007, 03:47 PM Re: checkbox must be ticked to enable another input? how do i do it
Defies a Status

Posts: 3,420
Trades: 0
Does these help in any way?

http://codingforums.com/archive/index.php?t-1780.html
http://www.thescripts.com/forum/thread152745.html

Last edited by CSS4Life; 09-20-2007 at 03:48 PM..
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 09-20-2007, 03:58 PM Re: checkbox must be ticked to enable another input? how do i do it
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
<input type="checkbox" name="checked_field" onclick="toggleInput(this)" ondblClick="toggleInput(this)" />
function toggleInput (field) {
if (field.checked) {
your_form.your_field.disabled = false;
} else {
your_form.your_field.disabled = true;
}
}
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-20-2007, 04:36 PM Re: checkbox must be ticked to enable another input? how do i do it
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
im assuming if i followe dthat my <form name="your_form"> and <input name="your_field"> yrea?
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-20-2007, 07:45 PM Re: checkbox must be ticked to enable another input? how do i do it
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You got it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to checkbox must be ticked to enable another input? how do i do it
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23345 seconds with 12 queries