javascript – Note tool – Fill in the text box with the template

I have been working on a notes tool for my company to help simplify the verification and registration of accounts. I have added in additional features that help with different aspects of the job as well.

I wonder if there is anything I can do to simplify some of the functions I created.

Such as the "preload options." They take the contents of hidden divs and they are added to the text boxes of the notes. I'm sure there's a better way to do it, but I think I've been watching it for too long.

Any comment is welcomed!

I have removed any reference to the company to avoid any problem of publishing that information.

Full font too big to paste here:
https://pastebin.com/pdYH2DMq

Below is how I am currently filling boxes with prefabricated templates.

/ * Fill in the emission and resolution boxes with templates * /
$ (document) .ready (function () {
$ (& # 39;. Prefill & # 39;). in ("click", function (e) {
var id = $ (this) .attr (& # 39; id & # 39;);
id1 = id + "1";
id2 = id + "2";
id3 = id + "3";
if (document.getElementById ("number"). value! = & # 39; & # 39;) {
document.getElementById ("number"). value + = & # 39;  n & # 39;
}
if (document.getElementById ("reso"). value! = & # 39; & # 39;) {
document.getElementById ("reso"). value + = & # 39;  n & # 39;
}
if (document.getElementById ("scratch"). value! = & # 39; & # 39;) {
document.getElementById ("scratch"). value + = & # 39;  n & # 39;
}
document.getElementById ("number"). value + = document.getElementById (id1) .innerHTML;
document.getElementById ("reso"). value + = document.getElementById (id2) .innerHTML;
if (document.getElementById (id3) .innerHTML! = & # 39; & # 39;) {
document.getElementById ("scratch"). value + = document.getElementById (id3) .innerHTML;
}
$ (& # 39; textarea & # 39;). autoHeight ();
});
});

/ * Add final result buttons * /
$ (document) .ready (function () {
$ (& # 39; .fining & # 39;). in ("click", function (e) {
endid = $ (this) .attr (& # 39; id & # 39;);
endid1 = endid + "1";
if (document.getElementById ("reso"). value! = & # 39; & # 39;) {
document.getElementById ("reso"). value + = & # 39;  n & # 39;
}
document.getElementById ("reso"). value + = document.getElementById (endid1) .innerHTML;
$ (& # 39; textarea & # 39;). autoHeight ();
})
})
/ * // Add final result * /



















RESOLVED
UNSOLVED
THE WORK WAS CREATED TO ALSO PROBLEM SOLVING THE PROBLEM
WORK ORDER CREATED FOR THE TECHNOLOGY TO FINISH THE UPDATE
Service outside
CST informed of the current interruption in the area.
Suggested steps step 1 Step 2
Where is the technique
Suggested steps step 1 Step 2
Billing - CST Calling to pay invoice
Suggested steps step 1 Step 2
Billing - Account in Soft Disconnect
Suggested steps step 1 Step 2
Billing - Need to recharge prepaid internet
Suggested steps step 1 Step 2
Billing - Disconnection without payment
Suggested steps step 1 Step 2
Billing - ARU does not work
Suggested steps step 1 Step 2
Suggested steps step 1 Step 2
Billing - Unexpected bill increase
Suggested steps step 1 Step 2
Billing: the customer wants to analyze the update options
Suggested steps step 1 Step 2
Billing - Recommend to a friend
Suggested steps step 1 Step 2
Internet - Out
Suggested steps step 1 Step 2
Internet - CST wants to add a client-owned modem MAC address of the new modem: ##########
Suggested steps step 1 Step 2
Internet - I can not connect to WiFi
Suggested steps step 1 Step 2
Internet: customer-owned router problem
Suggested steps step 1 Step 2
Video output
Suggested steps step 1 Step 2
Video - Glitching
Suggested steps step 1 Step 2
Video: You can not change the volume or turn the TV on or off TV Brand:
Suggested steps step 1 Step 2
Video - Audio problem / language
Suggested steps step 1 Step 2
Video - Can not change channels / open guide / menus
Suggested steps step 1 Step 2
Video - No team to solve
Suggested steps step 1 Step 2
Video: the message "Your service must be activated before continuing" on the screen
Suggested steps step 1 Step 2
Video: "Not included in your current subscription" message on the screen
Suggested steps step 1 Step 2
Video - "DVR service not available" message on screen
Suggested steps step 1 Step 2
VIDEO - XSTREAM BOX DOES NOT CONNECT TO THE INTERNET
Suggested steps step 1 Step 2
Phone outside
Suggested steps step 1 Step 2
Telephone - Port number of previous operator
Suggested steps step 1 Step 2
Telephone - CST requesting to change phone number
Suggested steps step 1 Step 2