, input text under Firefox browser can use disabled to disable input, why is input number invalid?

A form, the input setting cannot be entered, add the disabled attribute to input text and number respectively, and there is no problem on Google browser. However, when you open it on Firefox, the disabled property of, input number has no effect and can still be entered.

the answer found on the Internet is that disabled is not a standard attribute, and the new version of Firefox does not support it. But why can my input text support it? This is a little confusing.

the code is as follows:

        <div class="form-group">
            <p class="form-control-static" id="accountType">

<input type="text" name="account1" id="account1" class="activeline active" disabled> <span class="chooseIcon chooseMoreAccount">...</span> </div> <div class="form-group"> <p class="form-control-static warehouse" id="accountTypeMoney">

<input id="moneyId" type="hidden" /> <input id="accountmoney" name="accountmoney" type="number" class="active activeline" step="0.01" disabled> </div>

I would like to ask the great gods, what is this situation?

Jul.01,2021

Firefox, input number is invalid and can be used as text, to enter other characters.


you can't enter it anyway, just pretend it's not with div

.
Menu