javascript – Update textField to first letter capital and rest lower case

Is there an option via JavaScript to say: if the FirstName textfield is not null then update the text so that it is 1st letter being capital and the remaining lower case?

For example somebody types in the FistName textfield: jOHN (accidently).
This is how then the data is stored in SharePoint list, and I would like so that a java script updates the written text into the correct format before it is stored wrongly in the SP list.

I am trying something like this:

    NWF$(document).ready(function () {
    NWF$("#" + txtFirstName).change(function () {
        
        // get the text value from the FirstNname textfield
        var textContent = NWF$('#' + txtFirstName).text();

        // check to see if the value is not null
        if (textContent.length > 0) {

            // format the first letter to UpperCase and the rest to LowerCase
            textContent = NWF$("#" + txtFirstName).toUpperCase() + txtFirstName.substr(1).toLowerCase();
            this.value = txtFirstName;
        }
      });
    });

❓ASK – Does the capital or the idea come first in a business? | Proxies-free

When it comes to any business proposition that is made or any business that is being ventured into, there are two things that are required in the beginning. You need to have an idea and you need to have capital in order to fund that idea and make it into a business. However one of the big questions that comes about is should the capital come first or should the idea come first and then the capital. In my personal opinion I think that you should have an idea first and then work towards the capital because having an idea shows a sense of passion in that respective field. Therefore you are more likely to be invested into it. However if you have the capital and then trying to decide on an idea to match that value then you may not get involved with something that you are interested in and this could lead to the failure of your business.

What are your thoughts on this? Which do you believe is the first step?

Tesla Capital – Teslacapital.org

Start 2021-02-02. PerfectMoney Verified, 1.2 Trust Score point(s) (Pakistan IPB Image)

Languages: EN

IPB Image

Description:

QUOTE

Teslacapital.org LTD is a platform providing with computing power-sharing services to users around the world. It saves users from the complicated process of purchasing, installing, and hosting mining machines. You can enjoy the service with just one click.

Investment plans:

0.5% daily for 200 trading days (+principal) ($10 – $100000)

1% daily for 200 trading days (+principal) ($1000 – $100000)

10% daily for 200 trading days (+principal) ($10000 – $100000)

Our deposit:

15.02.21 14:43 Transfer Sent Payment: 60.00 USD to account U27719734 from U1294xxx. Batch: 369152778. Memo: Shopping Cart Payment. Plan Bronze Investment Plan all-hyips.info.

Details:

Minimal deposit: $10
Maximal deposit: $100000
Referral comission: 3%
Payments: Manual
Features: SSL,DDOS,Original script

Whois:

Registrar NameCheap, Inc.

Dates 12 days old
Created on 2021-02-03
Expires on 2022-02-03
Updated on 2021-02-03

Name Servers
AUSTIN.NS.CLOUDFLARE.COM (has 17,651,456 domains)
MELINDA.NS.CLOUDFLARE.COM (has 17,651,456 domains)

SIGN UP

Zalupa Capital Ltd – Zalupa-capital.biz

I’m not admin here!

QUOTE

Our program is intended for people willing to achieve their financial freedom but unable to do so because they’re not financial experts.
zalupa-capital.biz is a long term high yield private loan program, backed up by Forex market trading and investing in various funds and activities. Profits from these investments are used to enhance our program and increase its stability for the long term.

Reduced Size Image

0.6% daily for 300 days (principal return)
Plan Spent Amount ($) Daily Profit (%)
Plan 1 $10.00 – $500.00 0.60

QUOTE

SSL Encryption
DDos Protection
Licensed Script
Registrar NameCheap, Inc.
Created on 2021-01-30
Expires on 2023-01-30
Updated on 2021-01-30
NS NS1.EASY-GEO-DNS.COM NS2.EASY-GEO-DNS.COM
NS3.EASY-GEO-DNS.COM NS4.EASY-GEO-DNS.COM

Accept: PM, Payeer, Bitcoin,…

Join here: https://zalupa-capital.biz/

Doge Capital – Dogecapital.online

I’m not admin/owner of the project

QUOTE

Doge Capital is a platform providing with computing power sharing services to users around the world. It saves users from the complicated process of purchasing, installing, and hosting mining machines. You can enjoy the service with just one-click.
To mine competitively today, you need to invest significant resources, time and effort into your setup. Our team has built the most efficient mining systems to do the job for you. This way you can fully focus on keeping track of the markets and remain competitive with your mining rewards.
We are all strong believers in the future of digital currencies and we love being part of this growing community. Our Team is committed to providing transparent, reliable, convenient and first-class computer powering sharing services to users around the world.

All new users get 100 MH/s dogecoin mining contract for free

Marketing:
The project provides 6 type of mining contracts
Min investment amount is only 250 dogecoins
Plan 1:
Price: 250 DOGE – 120 days
Plan 2:
Price: 740 DOGE – 120 days
Plan 3:
Price: 1450 DOGE – 120 days
Plan 4:
Price: 4400 DOGE – 120 days
Plan 5:
Price: 10500 DOGE – 120 days
Plan 6:
Price: 2000 DOGE – 120 days
The number of contracts is not limited, provided that they are available for sale

Cryptocurrency accepted for deposit:
DOGE, BTC, ETH, LTC, DASH, BCH, XRP, ZEC

Main Features:
24/7 live support via FB and E-mail;
Instant deposits to your balance;
fastpayments withing 24 hours;
Free sign up test bonus;
Up to 10% referral commission;
Real time mining income;
First profit within 10 minutes
Low minimum withdrawal amount (500 DOGE)

Referral Program:
From 5 up to 10% || You can always increase the level of your referral reward by inviting more active users to the project.

My deposit:
2021-02-01 08:10:42
4000 DOGE
TX: e3d4675fc08a22914a7bbbe39a65af10c5dde36351aa98699e94167162208c43

https://dogecapital.online/?ref=25

hyip1sttop – VIP HYIP monitoring service
News, advertising, reviews
Up to 1000% RCB

Zenith Capital – Zenith-capital.ltd

I am not the admin or the owner of the project, I don’t know the admin!

Zenith Capital

Reduced Size Image

View / Sign-Up

PLANS:
10% – 40% after 24 hours, 80% after 48 hours

PAYMENT PROCESSORS:
Bitcoin

PROGRAM DETAILS:

Minimum Investment:
US$ 30
Maximum Investment:
US$ No Limit

Referral:
5%

Type of Script:
licensed

Start of Monitoring:
02.02.2021

View / Sign-Up

Capital Catalyst – Capital-catalyst.uk

I am not the admin or the owner of the project, I don’t know the admin!

Capital Catalyst

Reduced Size Image

View / Sign-Up

PLANS:
9% after 18 hours, 15% after 24 hours, 25% after 35 hours, 50% after 10 hours

PAYMENT PROCESSORS:
Perfect Money, Netpay, Bitcoin, Ethereum, Litecoin, Dogecoin, Dash, Tron

PROGRAM DETAILS:

Minimum Investment:
US$ 20
Maximum Investment:
US$ 50000

Referral:
Up to 10%

Type of Script:
licensed

Start of Monitoring:
24.01.2021

View / Sign-Up

Rmk Capital – Rmkcapital-invest.com

I am not the admin or the owner of the project, I don’t know the admin!

RMK Capital

Reduced Size Image

View / Sign-Up

PLANS:
30% after 24 Hours, 45% after 48 Hours, 60% after 72 Hours, 100% after 5 Days

PAYMENT PROCESSORS:
Bitcoin, Ethereum

PROGRAM DETAILS:

Minimum Investment:
US$ 30
Maximum Investment:
US$ No Limit

Referral:
7%

Type of Script:
licensed

Start of Monitoring:
17.01.2021

View / Sign-Up

Mcs Capital – Mcs-capital.net

I am not the admin or the owner of the project, I don’t know the admin!

MCS Capital

Reduced Size Image

View / Sign-Up

PLANS:
10% After 24 Hours, 25% After 3 Days, 40% After 5 Days

PAYMENT PROCESSORS:
Bitcoin, Ethereum

PROGRAM DETAILS:

Minimum Investment:
US$ 50
Maximum Investment:
US$ No Limit

Referral:
7%

Type of Script:
licensed

Start of Monitoring:
13.01.2021

View / Sign-Up

Ag Finance Capital – Agfinance-capital.com

I am not the admin or the owner of the project, I don’t know the admin!

AG Finance Capital

Reduced Size Image

View / Sign-Up

PLANS:
10% after 12 hours, 25% after 24 hours, 40% after 48 hours, 65% after 72 hours

PAYMENT PROCESSORS:
Bitcoin

PROGRAM DETAILS:

Minimum Investment:
US$ 200
Maximum Investment:
US$ No Limit

Referral:
10% – 3%

Type of Script:
licensed

Start of Monitoring:
11.01.2021

View / Sign-Up