Asked 7 years ago
9 Jun 2017
Views 1006
pratik

pratik posted

how to make un editable to input text in html ?

i want to make total amount un editable by the user but only jQuery and Javascript can do it .


<input type="text" class="form-control"  name="total_amount"  placeholder="Total Amount">


Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

use disabled property of input like below


 <input type="text" class="form-control"  disabled="true" name="total_amount"  placeholder="Total Amount">

Post Answer