Hey there, I've been using both the disabled class and the disabled attribute, but I'm not sure about the difference between the two. Can someone clarify when to use the class and when to use the attribute? I have a button in my code that I want to disable, so what is the preferred method - using the class disabled or the attribute disabled?
<button class="btn btn-primary disabled" type="button">
disabled="disabled"