Line 20: | Line 20: | ||
} | } | ||
− | input[type=checkbox] | + | input[type=checkbox] { |
− | + | vertical-align: middle; | |
− | + | ||
} | } | ||
</style> | </style> | ||
Line 139: | Line 138: | ||
} | } | ||
); | ); | ||
+ | $("fieldset legend").click(function() { | ||
+ | if ($(this).parent().children().length == 2) | ||
+ | $(this).parent().find("div").toggle(); | ||
+ | else { | ||
+ | $(this).parent().wrapInner("<div>"); | ||
+ | $(this).appendTo($(this).parent().parent()); | ||
+ | $(this).parent().find("div").toggle(); | ||
+ | } | ||
+ | }); | ||
}); | }); |
Revision as of 22:40, 30 October 2017