Created
September 25, 2008 16:27
-
-
Save collin/12850 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div').dblclick(function() { | |
var el = $(this); | |
el | |
.hide() | |
.after($('<input name="something" type="text">') | |
.val(el.html()) | |
.blur(function() { | |
el | |
.html($(this).val()) | |
.show(); | |
$(this).remove(); | |
$.post(url, jsonData) // more ajax info => http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment