Answers for "anchor element disabled in jquery"

0

using jquery how to add disabled to a html tag

$(element). prop('disabled', true);
Posted by: Guest on April-15-2021
0

disable anchor tag jquery after click

$('.btn').on('click', function(e) {
    e.preventDefault();
    $(this).off("click").attr('href', "javascript: void(0);");
   //add .off() if you don't want to trigger any event associated with this link
});
Posted by: Guest on July-15-2020

Browse Popular Code Answers by Language