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