Initializing
Liveweave
Web
expand_more
home
Home
data_object
CSS Explorer
arrow_outward
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
outbox_alt
Generative AI
arrow_outward
frame_source
Python Playground
New
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Save
account_circle
Login
settings
Settings
expand_more
14
px
Live mode
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <title>HTML5, CSS3 and JavaScript demo</title> </head> <body> <ul class="clearfix"> <li class="clear"><label>Select dependent group : </label></li> <li class="clear marginlft"> <input type="checkbox" id="cbAllDependent" /> <label>All Dependent</label> </li> <li class="clear marginlft"> <input type="checkbox" id="cbImmediateOnly" /> <label>Immediate Family Only</label> </li> <li class="clear marginlft"> <input type="checkbox" id="cbSpouseOnly"/> <label>Spouse Only</label><br /> </li> <li class="clear"><label>Benifit for selected dependent group :</label></li> <li class="clear marginlft"> <input type="checkbox" id="cbSpouseDependent" class="mainCb"/> <label>Spouse</label> <ul class="subUl"> <li class="clear marginlft50"> <input type="checkbox" id="cbNotQualifySpouse" /> <label>Not Qualify</label> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbLifeTimeSpouse" /> <label>Life Time</label> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbMaxAgeMemberSpouse" /> <label class="wAuto">Untill member would have turned </label><select id="ddMaxAgeMemberSpouse" class="w95 member"><option value="">Select Age</option></select> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbMaxAgeSpouse" /> <label class="wAuto">Untill spouse reaches</label><select id="ddlMaxAgeSpouse" class="w95 member"><option value="">Select Age</option></select><lable class="wAuto mL"> Age</lable> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbYearSpouse" /><label class="wAuto">For </label><select id="ddlYearsSpouse" class="w95 member"><option value="">Select Years</option></select><span class="mL12"> After member's death</span> </li> </ul> </li> <li class="clear marginlft"> <input type="checkbox" id="cbChildrenDependent" class="mainCb" /> <label>Children</label> <ul class="subUl"> <li class="clear marginlft50"> <input type="checkbox" id="cbNotQualifyChildren" /> <label>Not Qualify</label> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbLifeTimeChildren" /> <label>Life Time</label> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbMaxAgeMemberChildren" /> <label class="wAuto">Untill member would have turned </label><select id="ddlMaxAgeMemberChildren" class="w95 member"><option value="">Select Age</option></select> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbMaxAgeChildren" /> <label class="wAuto">Untill children reaches</label><select id="ddlMaxAgeChildren" class="w95 member"><option value="">Select Age</option></select><lable class="wAuto mL"> Age</lable> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbYearChildren" /> <label class="wAuto">For </label><select id="ddlYearChildren" class="w95 member"><option value="">Select Years</option></select><span class="mL12"> After member's death</span> </li> </ul> </li> <li class="clear marginlft"> <input type="checkbox" id="cbDisabledDependent" class="mainCb"/> <label>Disabled Children</label> <ul class="subUl"> <li class="clear marginlft50"> <input type="checkbox" id="cbLifeTimeDisabled" /> <label>Life Time</label> </li> <li class="clear marginlft50"> <input type="checkbox" id="cbMaxAgeChild" /> <label class="wAuto">Untill child reaches</label><select id="ddlMaxAgeChild" class="w95 member"><option value="">Select Age</option></select><lable class="wAuto"> Age</lable> </li> </ul> </li> </ul> </body> </html>
p { font-size: 60px; }
$('.mainCb').on('change', function () { var parent = $(this).parent(); if ($(this).is(':checked')) { parent.find('.subUl').show(); } else { parent.find('.subUl').hide(); parent.find('.subUl input:checkbox').prop('checked', false); parent.find('.subUl select').prop('disabled', true); // for disabling select but not able to disable select } });