Vyhľadajte odpoveď

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

TypeError: document.getelementbyid(...) is null

  • 1 odpoveď
  • 1 má tento problém
  • 33 zobrazení
  • Posledná odpoveď od jscher2000

more options

Although there is a proper id on html but still its showing "TypeError: document.getelementbyid(...) is null".

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Fundraising made simple</title>
              <form method="post" action="" >
                  <button class="btn btn-success" style="margin: 14px;margin-left: 3em;" name="input_amount" id="total_ammount" value="00.00" type="submit" >Pay </button>
function myFunction(id) {
    console.log('hello all',id)
    document.getElementById('ammounth1').innerHTML = '$ '.concat(counts.toFixed(2));
    document.getElementById('ammounth2').innerHTML = '$ '.concat(count_percentage.toFixed(2));
    document.getElementById('ammounth3').innerHTML = "Paypal will be billed : $ ".concat( total)

<!-- test to see if user is logged in our not -->
<!-- True -->

<!-- Google site tag code -->

<!-- fullscreen fg fields background -->
        body {
        background: url("https://alphabetacharlie.s3-eu-west-1.amazonaws.com/media/images/KICKSTARTER_FUNDGRAZING_WALLET.png") no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;

        <div class="container">
            <h5> &copy; Copyright 2020 fundgrazing.com All Rights Reserved <a href="/accounts/contact_us/" target="_blank">Contact Us</a>  |  <a href="/accounts/gdpr/" target="_blank">GDPR</a></h5>

<!-- Twitter universal website tag code -->
    // Insert Twitter Pixel ID and Standard Event data below
    <!-- End Twitter universal website tag code -->


Priložené obrázky

Upravil(a) cor-el dňa

Všetky odpovede (1)

more options

Hi dvskhamele, this isn't a good forum for pasting large amounts of code. Probably better to use StackOverflow: Where to go for developer support.