JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css">
<script src="http://www.jacklmoore.com/colorbox/colorbox/jquery.colorbox.js"></script>
<input id="add_btn" type="button" value="Add element" />
<br />
<div id="content"></div>

JavaScript

$(function(){
    
    var content = $('#content');
    
    $('#add_btn').click(function(){
        content.append('<input class="login" type="button" value="login" />');
    });
    
    /*$(".login").live('click', function(){
         $.colorbox({ href:'http://threadless.com', iframe:true, width:"80%", height:"80%" });
    });*/
    
    //OR (for new jquery versions)
        
    content.on('click', '.login', function(){
         $.colorbox({ href:'http://threadless.com', iframe:true, width:"80%", height:"80%" });
    });

});