javascript - jeditable edit multiple links -


Trying to make jeditable to edit several links, and result onsubmit

  Function InlineAdWords (LinkId) {$ ('.inlineLinkEdit_' + linkId). Editable ('crudDocumentationLink.htm', {event: 'editclick', Submit: 'Save', Cancel: 'Cancel', Notifier: ''   

and html:

  & lt; A href = "$ {document.link}" square = "inline link _ $ {document.id}" id = "inlineEdit _ $ {document.id}" & gt; $ {Document.link} & lt; / A & gt; & Lt; Span style = "display: none;" Class = "inlineLinkEdit _ $ {document.id}" id = "Inline Edit _ $ {document.id}" & gt; $ {Document.link} & lt; / Span & gt; & Lt; Span class = "inlineLinkTrigger _ $ {document.id}" onclick = "editLink ($ {document.id})" style = "cursor: indicator;" & Gt; Edit & lt; / Span & gt;   

To edit the work but I need to update that value according to user input. So what is wrong with my code

Finally I'm able to do it (the problem text is correct In the manner set out) I changed "onsubmit" to "callback" and changed the first two rows inside it.

  $ ('.inlineLink_' + linkId) .attr ({"href": $ ('.inlineLinkEdit_' + linkId) .text ()}); $ ('.inline link_' + link id) .text ($ ('inline link edit_ '+ link id) .text ());    

Comments