生成入力ボックスを実装する必要があります。生成時にデフォルト値があり、そのデフォルト値はオート フォーカスであり、すべてのテキストを選択する必要があります。
ボタンがクリックされ、この関数を呼び出すと仮定したJSの関数は次のとおりです
function createFolder()
{
var newTextBoxDiv = $(document.createElement('div')).attr({
"id" : 'TextBoxDiv',
"class" : 'TextBoxDiv+ctr'
});
newTextBoxDiv.html('<input type="text" name="folder_name" id="folder_name" value="New Folder"/>');
$("#folder_name").focus(function() { $(this).select(); } );
newTextBoxDiv.appendTo("#fileTreeView");
}