mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-10-06 01:26:04 +00:00
30 lines
617 B
JavaScript
30 lines
617 B
JavaScript
|
function val() {
|
||
|
w = document.getElementById("w-select");
|
||
|
w.value = '';
|
||
|
|
||
|
a = document.getElementById("a-select");
|
||
|
a.required = "required";
|
||
|
}
|
||
|
function val2() {
|
||
|
a = document.getElementById("a-select");
|
||
|
a.value = '';
|
||
|
|
||
|
w = document.getElementById("w-select");
|
||
|
w.required = "required";
|
||
|
}
|
||
|
|
||
|
$(document).ready(function () {
|
||
|
$('.form-text').hide();
|
||
|
$('.help').click(function () {
|
||
|
$('.form-text').slideToggle();
|
||
|
});
|
||
|
|
||
|
$('#op1').val(this.checked);
|
||
|
$('#op1').change(function () {
|
||
|
if (this.checked) {
|
||
|
$('option[disabled="disabled"]').hide();
|
||
|
} else {
|
||
|
$('option[disabled="disabled"]').show();
|
||
|
}
|
||
|
});
|
||
|
});
|