I
I
Igor Kaspersky2015-10-18 11:58:52
css
Igor Kaspersky, 2015-10-18 11:58:52

jquery ajax.load() how does it work?

Hello everyone, this .load() does not work.

<body>
  <div id="content">
    
  </div>
</body>

I read .load() here , did as it was said, wrote as it is written there, it is clearly written
$('#content').load('content.html', function(){
    alert("Получен ответ от сервера.")
  })

BUT WHY DOES THE BLIYIN not work. We send/load/load the content.html document into the content tag. And we display a message that everything is ok. But it doesn’t work, the deleted content.html document is in this folder too, everything is in the same folder, it doesn’t work, what to do. In the videos that I watched, everyone gave an example with the .php extension. What do you suggest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
holfza, 2015-10-18
@HHabar

Everything works:
clip2net.com/s/3p0Pd9c (archived)
c2n.me/3p0Pvrw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question