1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
(function($) {
$(document).ready(function() {
$("select#company_select").change(function() {
if ($(this).val() == 'None of the Above') {
$("input#company_other").parent().removeClass('hidden');
} else {
$("input#company_other").parent().addClass('hidden');
}
});
$("select#attendance_type").change(function() {
if ($(this).val() == 1) {
$("div#attendance_details").removeClass('hidden');
} else {
$("div#attendance_details").addClass('hidden');
}
});
$("select#visa_status").change(function() {
if ($(this).val() != 0) {
$("div#visa_details").removeClass('hidden');
} else {
$("div#visa_details").addClass('hidden');
}
});
$("input[type=submit]#save").click(function() {
return confirm("You have chosen not to complete your " +
"Linaro Connect Q1.12 registration now - Are you sure?");
});
});
})(jQuery);
|