JSFiddle - React, Tailwind, and code Playground

by Al Kasih

HTML

<ul id="choice">
        <li> fisrt choice 
        </li>
        <li> second choice 
        </li>
        <li> third choice 
        </li>
        <li> last choice 
        </li>
    </ul>   



    <div id="zen-content"></div>

JavaScript

$(document).ready(function(){
    $('#zen-content').html($('#choice li:first').html()); 
    $('#choice li').click(function(event) {
         $('#zen-content').html( $(this).html());
    }); 
});