Добавление кнопки закрытия в div, чтобы закрыть окно
Я создал окно предварительного просмотра URL для введенного URL.
Предварительный просмотр отображается в поле div. Я хочу добавить опцию закрытия в правом верхнем углу. Как это сделать, чтобы при щелчке пользователя на нем окно было отключено.
Вот мойскрипка.
<a class="fragment" href="google.com">
<img src="http://placehold.it/116x116" alt="some description">
the title will go here
www.myurlwill.com
<p class="text">
this is a short description yada yada peanuts etc this is a short description yada yada peanuts etc this is a short description yada yada peanuts etc this is a short description yada yada peanuts etcthis is a short description yada yada peanuts etc
</p>
</a>
код это внутриphp