Take a look at how the button is visually represented by default:
<button class="btn primary bidbutton">Bid Now!</button>
During a specific JavaScript event, I execute the following actions:
$(this).siblings('.bidbutton').addClass("disabled");
$(this).siblings('.bidbutton').attr("disabled", "");
This code snippet essentially disables the button from being clicked under certain conditions.
Upon refreshing the page, there are instances where this dynamically applied styling persists.
But why does this happen?
Shouldn't it revert to its default appearance when the page reloads?