I'm new to jQuery and would like to know if it is possible to create and edit-in-place div that I can click on, type some text, have it save and immediately have another div dynamically pop up beneath it that will allow the same capability to type in and save, so on and so forth. If anyone has any ideas it would be greatly appreciated.
$(document).ready(function() {
$('.edit_area').editable(function(value, settings) {
return (value);
}, {
type: 'textarea',
onblur: 'submit',
indicator: 'Saving...',
callback: function(value, settings) {
var thisData = $(value);
$.post('<%=Url.Action("SetPostieNotes", "Posties") %>',
'postieNotes=' + escape(thisData)
);
var divTag = document.createElement("div");
divTag.id = "div";
divTag.setAttribute("align", "center");
divTag.className = "edit_area";
divTag.innerHTML = "Test Dynamic Div.";
document.body.appendChild(divTag);
}
});
});