add class disabled on anchor tag jquery code example Example: jquery disable class attribute $("input.myclass").attr("disabled", true);