disable html code example
Example 1: disable input type button in html
<input type="button" disabled value="Submit">
Example 2: disabled attribute is not working in html
try to use disabled="disabled":
<input type="text" id="txtEditAlternate" class="form-control" name="alternate" disabled="disabled" />
I hope it will work for you.