rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 214 forks source link

This script does not works #149

Closed mkecki closed 5 years ago

mkecki commented 5 years ago
I included scripts into head:
<script src="~/lib/image-picker/image-picker.js"></script>
<link rel="stylesheet" href="~/lib/image-picker/image-picker.css" />'
And into body:
<select class="image-picker show-html" asp-for="@Model.Image">
           <option data-img-src="~/images/1.jpg" data-img-class="first" value="1">Page 1 </option>
            <option data-img-src="~/images/2.jpg" data-img-class="last" value="2"> Page 2 </option>
</select>
No images visible 
Humni commented 5 years ago

Did you read the documentation? http://rvera.github.io/image-picker/ You are missing a critical step