https://www.placementpreparation.io/qua ... d-answers/
Я создаю веб-сайт в WordPress с помощью конструктора divi. Я попробовал использовать код ajax, чтобы при нажатии кнопки отображать только часть веб-страницы с другой веб-страницы.
Код: Выделить всё
just trial
fetch only sections of specific HTML areas
from an external page using AJAX
Click Here
External.html page
style="border: 1px solid black;
width:max-content;
padding:0.5rem">
fetched Content will display here.
event_occur = () => {
// Load the Section with .first class and display
$("#display").load("index.html .first");
};
Код: Выделить всё
webpage from wherer content is loaded
Index.html - Section - class = "first"
content from here will be loaded
Web Development
[list]
[*]HTML
[*]CSS
[*]JAVA SCRIPT
[*]JQUERY
[/list]
this will not load
Machine Learning
[list]
[*]Python
[/list]
this will not load
Courses
[list]
[*]Interview Preparation
[*]DSA
[*]DBMS
[/list]
Что мне делать, чтобы код работал... Спасибо
Я попробовал описанную выше логику и ожидал, что раздел веб-страницы будет загружен при вызове ajax.
Подробнее здесь: https://stackoverflow.com/questions/791 ... ide-answer
Мобильная версия