NicolasCARPi / jquery_jeditable

jQuery edit in place plugin. Extendable via plugin architecture. Plugins for plugin. Really.
https://jeditable.elabftw.net
MIT License
1.74k stars 458 forks source link

How to set the id of input field #195

Closed sseppo closed 5 years ago

sseppo commented 5 years ago

Description

Script puts it's own id as the id of the input-text field. But it would be more useful if one could set their own id there, for i.e. purpose to update result to database (thus, along the text would be needed the id it refers to). If this is possible already, I did not find a way to do it. I only can set the name of the id field sent, but not the content of the id-field. ##

NicolasCARPi commented 5 years ago

I only can set the name of the id field sent, but not the content of the id-field

That's the spirit. The id will be the id, even if you can change the name. But if you need to send along more data (a very common practice with jquery-jeditable), it's very easy to do so with submitdata.