JSFiddle - React, Tailwind, and code Playground

by Sethu raman

HTML

<a href="" id="add" >add Select box</a>

JavaScript

$('#add').click(function (e) {
                e.preventDefault();
                var $select = $('<select></select>');
                $select.append($("<option></option>").attr("value", "0").text("--- Select ---"));
                $(this).append($select);
            });