How to edit data onclick

后端 未结 6 1365
庸人自扰
庸人自扰 2020-12-28 20:47

I am not sure what it is called, but I want to be able to click on e.g. a div containing a number, and then it will change into a input text field, with the val

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-28 21:27

    Why not just stay with one input field, and change the field styles on blur. You can take everything away so it doesnt look like an input, that way there's no need to change back and forth. Make an Ajax call on blur.

提交回复
热议问题