简体   繁体   中英

How to change html content using JavaScript or JQuery?

How to change html content using JavaScript or JQuery?

在此处输入图片说明

I want to change contents from 1 to 5 sequentially according to the time as stated in the picture. What should I do using JavaScript or JQuery? Please let me know if you have any search keywords or links to related documents.

As per the picture, I assume that you want to randomly shuffle the contents each day. you can do this by using an array of contents and on each day randomly select an element from the array and set it as the content of div using DOM manipulation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM