I have created a URL preview box for the entered URL.
Preview is shown in the div box. I want to add a close option on the right top. How could be done so that when u
Updated your fiddle: http://jsfiddle.net/xftr5/11/ Hope, everything is clear?
$(document).ready(function() { $('.fragment i').on('click', function(e) { $(e.target).closest('a').remove(); }); });
Added jQuery and inserted an as close trigger...