Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make readonly fields unclickable

In my form i am using readonly fields.

How to make this readonly fields unclickable I don't want to use disabled fields, just make readonly fields unclickable any one have idea plz share.

like image 496
Waqas Khan Avatar asked Dec 12 '22 01:12

Waqas Khan


1 Answers

You can also use the property disable to make the input unusable and unclickable. I think it's more clear and efficient way.

Here is the the difference between readonly and disable:

<div>
  <input disabled type="text">
  <input readonly type="text">
  <input type="text">
</div>
like image 135
nyagolova Avatar answered Dec 18 '22 06:12

nyagolova