Answers for "remove radio button in dom using jquery"

1

jquery disable radio button command

$(document).ready(function() {
  // By Default Disable radio button
  $(".second").attr('disabled', true);
  $(".wrap").css('opacity', '.2'); // This line is used to lightly hide label for disable radio buttons.
  // Disable radio buttons function on Check Disable radio button.
  $("form input:radio").change(function() {
    if ($(this).val() == "Disable") {
      $(".second").attr('checked', false);
      $(".second").attr('disabled', true);
      $(".wrap").css('opacity', '.2');
    }
    // Else Enable radio buttons.
    else {
      $(".second").attr('disabled', false);
      $(".wrap").css('opacity', '1');
    }
  });
});
Posted by: Guest on April-08-2021
0

unset radio button jquery by name

$("input:radio[name='thename']").each(function(i) {
       this.checked = false;
});
Posted by: Guest on September-03-2020

Code answers related to "remove radio button in dom using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language