Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# razor add disabled to button if

<input type="button" class="btnresetinvoice button" value="Reset"
       data-invoiceid="@item.InvoiceId"
       @{ if(item.PMApproved != true) { 
             @:disabled="disabled" 
        } }
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #razor #add #disabled #button
ADD COMMENT
Topic
Name
4+3 =