Skip to content

Tag: html

How to change text using arrays and DOM

So my proyect has the task that every time the siguiente button is clicked the text will change. So far, I have maneged to do that manupulating the DOM. But I have an array historia that I would like to use in order that, every time the button Siguiente is clicked the text of the html element would change. An…

AJAX Post Function without form Not Reset

Hello i’m kinda confused with ajax POST method, i try to make api request and since the respond have a similar parameter i make it as one global function so it can be use by my other html / js in other page, i know that the ajax post will make the function required to refreshed. but i don’t know

Vertical alignment of ::after pseudo elements

When I place svg image next to text, with vertical-align: middle;, then it aligns pretty nicely. However, if I use svg in the ::after pseudo-element, then the results are not as expected. Furthermore, when I click on text to remove its content, then remaining svg element still keeps its unaligned position: He…