JSFiddle - React, Tailwind, and code Playground

by lshettyl

HTML

<div id="Of0UWpK5bEo" class="status">
    <img src="http://img.youtube.com/vi/Of0UWpK5bEo/0.jpg" height="100px" width="100px"/>
    <span class="caption">Text below the image</span>
</div>

JavaScript

var ids = ["Of0UWpK5bEo","1qYMJjTxJnM","8aAab7gxbEg","ZEd6aKdeC8g","qQcFvamzdno","yovbI8DOMpk"];

$('#'+ids[0]).find('.caption').text("New Text");