In this post I give the demo of editable label using jquery. In this demo I create a label and textbox. And with the help of jquery I bind events to convert textbox into label and label to textbox for editing.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Editable Label</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#txt').blur(function () {
if ($('#txt').val().trim() != '') {
$('#txt').hide();
$('#lbl').html($('#txt').val());
$('#txt').val('');
}
});
$('#lbl').click(function () {
if ($('#lbl').html().trim() != '') {

Join the conversation! Your thoughts help the community grow.