how to regenerate an image without regenerating the text on a different section of the page

https://perchance.org/comino-com

I want to be able to regenerate an image on my generator without regenerating the text of a different part of the page. I've been able to do it the other way around. Check the link for more info

2 points · 1 comments · view on lemmy.world

1 Comments

wthit56@lemmy.world · 1 pts · 2y

You can pass the update function an element on the page. For example if you have an element with the id "image_display" you can use update(image_display).