My javascript won't work as it should

前端 未结 5 1740
闹比i
闹比i 2021-01-17 01:40

I\'m trying to create a website in HTML which recieves JSON-formatted data using javascript and, then it will be injecting that data into my website.

The problem is

5条回答
  •  攒了一身酷
    2021-01-17 02:28

    On using firebug on your site i found out that your html contains updated data as shown here:

    Code

    The problem is you are using background image that hides it on removing this line of code from your site:

    I get this output:

    output

    on having a closer look I found that you have two div in html that have the same ID output, so make it sure that only one div has the output id bcoz ID should be unique in html.

    error

提交回复
热议问题