luka032 luka032 - 5 months ago 14
HTML Question

Mozilla automatically adding disabled="" as button attribute

I have issue I'm making asp .net application any on my view page I got problem.

When I run application in Chrome everything works perfect, but when I run it in Mozilla it just somehow add's disabled="" on my button - when I see page source attribute is added.

Here's my button code:

<button class="btn btn-warning btnBid" value="Bid" type="button" id="@Html.Raw("btn" + item.IDAuc)">
Bid
</button >

Answer

I still don't know why this happened, but as one solution I've called initialize() function in JavaScript in which I've just set all buttons' class to be btn and simply just call:

$(".btn").prop("disabled", false);