TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-02-2010, 12:37 AM   #1 (permalink)
The Contributor
 
Tim Dobson's Avatar
 
Join Date: Feb 2010
Posts: 69
Thanks: 16
Tim Dobson is on a distinguished road
Default Checkboxes working with text field

ok so i want to do something with a checkbox and a text field... i want the text field to be enabled if the checkbox is checked and the field to be disabled when unchecked. So i know i need to use on change and i couldent really find anything close to what i am needed.
Tim Dobson is offline  
Reply With Quote
Old 10-02-2010, 02:49 AM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Tim Dobson View Post
ok so i want to do something with a checkbox and a text field... i want the text field to be enabled if the checkbox is checked and the field to be disabled when unchecked. So i know i need to use on change and i couldent really find anything close to what i am needed.
Use jQuery, the following Google seraches should render what you need (I found useful info in the first link of each)
jquery checkbox onclick
jquery disable checkbox
__________________

Village Idiot is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
create .txt with text in the field? Tim Dobson General 6 02-28-2010 04:00 AM
Input-field with captured text falsely empties on click sidisinsane Javascript, AJAX, E4X 5 12-05-2008 12:12 AM
Refresh an input field delayedinsanity Javascript, AJAX, E4X 5 07-27-2008 07:48 AM
seeding an input text field with a string joby1 XHTML, HTML, CSS 2 01-03-2008 05:34 PM
PDF Creation - Help! Sam Granger General 7 10-31-2007 11:32 AM


All times are GMT. The time now is 06:46 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design