Submitting the value of a disabled input field

前端 未结 4 1133
执念已碎
执念已碎 2020-12-23 02:30

I want to disable an input field, but when I submit the form it should still pass the value.

Use case: I am trying to get latitude and longitude from Google Maps and

4条回答
  •  情话喂你
    2020-12-23 03:19

    I wanna Disable an Input Field on a form and when i submit the form the values from the disabled form is not submitted.

    Use Case: i am trying to get Lat Lng from Google Map and wanna Display it.. but dont want the user to edit it.

    You can use the readonly property in your input field

    
    

提交回复
热议问题