luka032 luka032 - 1 year ago 105
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)">
</button >

Answer Source

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);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download