https://www.placementpreparation.io/qua ... d-answers/
Я создаю веб-сайт в WordPress, используя Divi Builder. Я попытался следить за кодом AJAX, чтобы отобразить только раздел веб -страницы с другой веб -страницы на кнопке. Нажмите .. < /p>
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");
};
< /code>
и страница index.html, как ниже ... < /p>
webpage from wherer content is loaded
Index.html - Section - class = "first"
content from here will be loaded
Web Development
- HTML
- CSS
- JAVA SCRIPT
- JQUERY
this will not load
Machine Learning
- Python
this will not load
Courses
- Interview Preparation
- DSA
- DBMS
< /code>
Когда я нажимаю на кнопку, нажмите здесь, затем нужный раздел загрузки веб -страницы. Он работает нормально.
Теперь я хочу, чтобы в то же время текст нажатия нажимает кнопку, чтобы скрыть ответ, и новая кнопка создается автоматически в конце отображаемого ответа. Как написать код для кнопки скрыть кнопку ответа
Подробнее здесь: https://stackoverflow.com/questions/791 ... ide-answer
Мобильная версия