html disable editing textbox

Solutions on MaxInterview for html disable editing textbox by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "html disable editing textbox"
Albert
09 Feb 2018
1<!-- 
2You can either use the readonly or the disabled attribute.
3Note that when disabled, the input's value will not be submitted when
4submitting the form.
5-->
6<input id="price_to" value="price to" readonly="readonly">
7<input id="price_to" value="price to" disabled="disabled">