🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Caption.js is a dead simple jQuery plugin that allows you to add an HTML5 image caption (description, copyright, credit information) to any image with just one JS call.

image-caption

Documentation

jQueryCaption

Plugin which allows to dynamically add caption for image

How to use

Include jQuery:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

Include plugin's code:

<script type="text/javascript" src="/path/to/js/jquery.caption.js"></script>

Call the plugin:

You can use some String as a parameter in order to generate caption. If it is undefined, image's alt value is used for caption by default.

$("#selector").addCaption("Mishka na severe");



View on gerayzade.az


You May Also Like