Quantcast
Viewing latest article 11
Browse Latest Browse All 224

How to know, in Javascript, the state of a form (edit/view mode)

Hello, I wan't to know if it's possible to know the mode of a form : if it's in edit mode or in view mode? I need this information to change the "edit" mode of a widget that I implement! If it's not in edit mode, the user can't edit information, but if it's in edit mode, he can change these information! Moreover, when the user click on button "Save", how can I saved the information of my widget in the BDD? What is the function to redefined to do that? Thank you in advance! Best regards, Corentin Dijoux

Viewing latest article 11
Browse Latest Browse All 224

Trending Articles