mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
42 lines
819 B
JavaScript
42 lines
819 B
JavaScript
$(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();
|
|
}
|
|
});
|
|
|
|
|
|
$('.w-select').change(function(){
|
|
$('.a-select').each(function(i,v){
|
|
v.value = '';
|
|
v.required = '';
|
|
});
|
|
|
|
x = $(this).find(':selected').text();
|
|
y = document.getElementById('item');
|
|
y.value = x;
|
|
|
|
});
|
|
|
|
$('.a-select').change(function(){
|
|
$('.w-select').each(function(i,v){
|
|
v.value = '';
|
|
v.required = '';
|
|
});
|
|
|
|
|
|
x = $(this).find(':selected').text();
|
|
y = document.getElementById('item');
|
|
y.value = x;
|
|
|
|
|
|
});
|
|
}); |