From 273b16735750b9e182bd64e7b7e4027726901754 Mon Sep 17 00:00:00 2001 From: tomasm- Date: Fri, 20 May 2011 05:51:09 -0700 Subject: [PATCH] Adding support for passing a 'label' to provide instructions, field description, etc to the user, since the placeholder disappears. (once the user clicks on the container, without any instructions/description, they may not know what the box is for) --- jquery.jeditable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jquery.jeditable.js b/jquery.jeditable.js index eb8a911..ad027af 100644 --- a/jquery.jeditable.js +++ b/jquery.jeditable.js @@ -196,6 +196,12 @@ } } + /* Add (optional) form input label for user instructions, etc */ + if(settings.label) + { + form.append(""); + } + /* Add main input element to form and store it in input. */ var input = element.apply(form, [settings, self]);