jquery add hidden attribute

66

attr hidden to show jquery -

$(':checkbox').change(function(){
    $('#delete').removeAttr('hidden');
});

jquery add hidden attribute -

$('#check').change(function() {
  $("#delete").prop("hidden", !this.checked);
})

Comments

Submit
0 Comments