Opportunity html
Jump to navigation
Jump to search
| Line 442: | Line 442: | ||
<div class="checkbox-container"> | <div class="checkbox-container"> | ||
<label class="checkbox-label"> | <label class="checkbox-label"> | ||
| − | <input type=" | + | <input id="checkbox_input" type="hidden" name="Form announcement[Deadline as soon as possible]" value="false"> |
| − | <span class="checkbox-custom rectangular"></span> | + | <span class="checkbox-custom rectangular" data="checkbox_input"></span> |
</label> | </label> | ||
| Line 632: | Line 632: | ||
$(function() { | $(function() { | ||
| + | |||
| + | $('.checkbox-custom').on('click', function() { | ||
| + | var ref_input = $('#' + attr('data')); | ||
| + | ref_input.val(ref_input.val() == 'false' ? 'true' : 'false') | ||
| + | } | ||
$('.target_country_group_button').on('click', function() { | $('.target_country_group_button').on('click', function() { | ||
Revision as of 21:30, 5 March 2020