JavaScript
What is th ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What is the correct way to update the content of an element with id="someEl" using Ajax method?
$("#someEl").load("getContent.html")
$("#someEl").get("getContent.html")
$("#someEl").update("getContent.html")
$("#someEl").reload("getContent.html")
Explanation
The load() ajax method loads data from a server and puts the returned data into the selected element.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment