Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor making a field read only

$
0
0
<div class="wrap-input100 validate-input"><span>County Code</span><InputText class="@("cursor-disabled "+ input100)" readonly="true"  disabled="true" name="addressLine1" placeholder="County Code..." @bind-Value="_model.CountyCode" /><ValidationMessage For="@(() => _model.CountyCode)" /></div>

I have the HTML attribute readonly and disabledBut when the page is rendered, it does not respect this.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>