PgwSlideshow | Responsive Slideshow / Gallery / Carousel plugin | Carousel library
kandi X-RAY | PgwSlideshow Summary
kandi X-RAY | PgwSlideshow Summary
Responsive Slideshow / Gallery / Carousel plugin for jQuery and Zepto
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PgwSlideshow
PgwSlideshow Key Features
PgwSlideshow Examples and Code Snippets
Community Discussions
Trending Discussions on PgwSlideshow
QUESTION
I want get current image source from slider. when its slides that image source has to be captured in text box but it is taking only first image src and not taking the subsequent images. I am using pgwSlideshow plugin..
HTML code,
...ANSWER
Answered 2017-Feb-13 at 14:00The problem here is that in jQuery, some methods work on arrays in get mode, and others work only on single elements. The attr
method is one such method, the documentation states:
Get the value of an attribute for the first element in the set of matched elements.
(emphasis my own)
So in this example it will only ever return the src
of the first element in the set returned by find
.
The pgwSlideshow plugin sets all slides except the 'current' slide to be display: none
, so you should be able to filter by this to get the src
for the 'current' slide, something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PgwSlideshow
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page