How to select dynamic image from gallery view in jQuery

Hi everyone, I am new to jQuery and I am working on a single application. I need to select an image from Galary View in jQuery . I tried to do this code.

 // I need to set image dynamically so i am taking ImageIndex as a parameter. function OpenImageGallery(sImageIndex) { $('#myGallery').galleryView(); $(function () { $("#Divgallery").dialog( { width: 840, height: 520, title: 'Hotel Image Gallery' } ).parent().appendTo(jQuery("form:first")); }); } 

but here I ran into one problem: only the default image is displayed, not the dynamic one, the index of which I pass to the function.

Please help me friends.

+4
source share
1 answer

plugin documentation should have your answer.

+1
source

Source: https://habr.com/ru/post/1499397/


All Articles