DOM manipulation using JS | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

DOM manipulation using JS

How to achieve this below scenario? I wanna manipulate the DOM such a way that depends on the response data I am receiving from server it will add a ribbon on the page. e. g. I am fetching list of student objects in JSON format. based on the student names in student object, it will add a ribbon say and names will be displayed in these blocks like below. A ==== Adam Andy H ==== Harry S ==== Sabrina Sam ribbon will not be displayed if there is no name under that alphabet.

8th Dec 2016, 5:56 PM
Rana
Rana - avatar
2 ответов
0
so what is your question?
8th Dec 2016, 9:39 PM
jmey
0
I meant how to achieve this scenario through DOM manipulation...Thanks mate!
8th Dec 2016, 9:45 PM
Rana
Rana - avatar