Current location: Hot Scripts Forums » Programming Languages » Everything Java » Check boxto enable/disable a button


Check boxto enable/disable a button

Reply
  #1 (permalink)  
Old 11-09-04, 02:11 PM
El Barto El Barto is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Question Check boxto enable/disable a button

'Ello,

I was wondering whats the Javascript so that when a check box is checked a button becomes enabled and if they uncheck it then it becomes enabled?

Any help would be very much appricated, thanx in advance.
Reply With Quote
  #2 (permalink)  
Old 11-09-04, 04:55 PM
rpsajwan rpsajwan is offline
Newbie Coder
 
Join Date: Aug 2004
Location: India
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
will u explain it clearly plz
__________________
ravi
Reply With Quote
  #3 (permalink)  
Old 11-10-04, 11:08 AM
El Barto El Barto is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Basicly I want to have a button a a form that is disabled, and a check box which the user can click on that will enable the button (the one thats disabled at the start) allowing the user to click it. And if the click on the check box again (unchecking it) it disables the button, stopping the user from pressing it
Reply With Quote
  #4 (permalink)  
Old 11-18-04, 01:00 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
You do realize that you are asking a JavaScript related question in the Java forum (two different things). Or does your question somehow relate to Java?

In any case, here is a link that may/may not answer your question:

http://www.quirksmode.org/js/disabled.html
__________________

Last edited by digioz; 11-18-04 at 01:07 PM.
Reply With Quote
  #5 (permalink)  
Old 11-19-04, 04:56 PM
El Barto El Barto is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
bugger, thanx for pointing that out I think i clicked on the wrong forum when I posted this =/.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable browser's back button after logout shaky ASP 7 08-18-06 07:37 AM
SubmitAll button, which submit all forms on the page. al22 ASP 1 10-19-04 12:02 PM
submit button tcooper JavaScript 1 07-15-04 02:22 AM
Can ASP check registry janice_2k ASP 0 05-31-04 03:28 AM
image submit button problems Pepe PHP 10 12-22-03 08:15 PM


All times are GMT -5. The time now is 05:28 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.