Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
/ jQuery.clickToEdit Public archive

jQuery click-to-edit functionality, for a display element and a corresponding hidden edit element.

Notifications You must be signed in to change notification settings

RYFN/jQuery.clickToEdit

Repository files navigation

Basic click-to-edit functionality.

####TL;DR This plugin displays a hidden form with the class edit on click of corresponding element with the class display. Form data is then $.ajax data to the action of the edit form.

Check out the demo folder, or the Wiki.

####Basic HTML structure

Something

    <form class="edit" action="/what/ever/" method="post">
      <input type="text" name="Something"/>

      <button type="submit">update</button>
      <button type="button" class="cancel">cancel</button>
    </form>
</div>

####JS

$('.click-to-edit').clickToEdit();

About

jQuery click-to-edit functionality, for a display element and a corresponding hidden edit element.

Resources

Stars

Watchers

Forks

Packages

No packages published