// change事件
$('input[type=radio][name=type]').change(function () {
    if (this.value == '1') {
        $('.jump-item').show();
    }
    else if (this.value == '2' || this.value == '3') {
        $('.jump-item').hide();
    }
});
// 获取默认值
let type = $('input[type=radio][name=type]:checked').val();
if (type != 1) {
    $('.jump-item').hide();
}

相关文章:

  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案