Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-13-2007, 07:07 PM   PM User | #1
nikko50
Regular Coder

 
Join Date: May 2004
Posts: 375
Thanks: 62
Thanked 0 Times in 0 Posts
nikko50 is an unknown quantity at this point
checkbox value?

Hi there. If I disable a checkboc but have the default status to CHECKED. How can I show that the value is set to ON? It seems if the checkbox is disabled I can't get the status of it. Am I doing something wrong?

<input type="checkbox" checked DISABLED name="adjust" >
nikko50 is offline   Reply With Quote
Old 12-13-2007, 07:22 PM   PM User | #2
JordanW
Regular Coder

 
Join Date: Jul 2007
Location: United Kingdom
Posts: 159
Thanks: 2
Thanked 15 Times in 15 Posts
JordanW is on a distinguished road
Code:
<form name="form">
<input type="checkbox" checked DISABLED name="adjust">
<input type="button" value="Check" onClick="alert(document.form.adjust.value);">
</form>

This works fine for me! If you're still encountering a problem. It may be a javascript issue, therefore give up a snippet of the javascript that you using to check the value of the checkbox!


~Jordan
__________________
Remember The Thank You Button Is Your Friend =]

[ PHP / Javascript / VisualBasic / HTML / DHTML / CSS / .NET / MySQL ]
JordanW is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:02 AM.


Advertisement
Log in to turn off these ads.