$(document).on('dblclick', '#li', function () {    oriVal = $(this).text();    $(this).text();    input = $(<input type='text'>);    input.appendTo('#li').focus();});$(document).on('focusout', 'input', function () {    if (input.val() != ) {        newInput = input.val();        $(this).hide();        $('#li').text(newInput);    } else {        $('#li').text(oriVal);    }});So far, I still can't do OOP in jQuery.  Can you improve the above code?
Double click to edit and add new value to li
javascript;jquery;object oriented