OZONE Asylum
Forums
Stupid Basic HTML
3 Stage Checkbox Possible?
This page's ID:
28124
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I used to place an input type='hidden' with same ID as the checkbox right before it. Once submitted the value of the if the checkbox was not ticked, it's value was not sent thus the value of the hidden field remained. Using some JavaScript black-magic and the onlcick event of the checkbox you can use the hidden field and the checkbox together as a 3 stage checkbox, i.e:[code]checkbox ticked | value of the hidden | "3 stage value" ----------------+---------------------+---------------- unticked | 'whatever' | 'whatever' unticked | 'no' | 'no' ticked | 'yes' | 'yes'[/code]Style the checkbox and/or change the text of the label around the checkbox accordingly and you're done. Hope that helps, [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »