Skip to content

Multiple Videos on a Single Page #109

@TMHDesign

Description

@TMHDesign

The link elements below all open a modal, but every one opened only has the data-id for the first element. I have a page with 100 video thumbnails, and want to open each one upon a click.

<a href="javascript:void" data-type="youtube" data-id="98DXe3uKwfc" class="lightbox">ABS Braking System</a> <a href="javascript:void" data-type="youtube" data-id="bRcDvCj_JPs" class="lightbox">Partial Clutch Depression</a> <a href="javascript:void" data-type="youtube" data-id="devo3kdSPQY" class="lightbox">How Clutches Work</a> <a href="javascript:void" data-type="youtube" data-id="ewcWN-rHQ6Q" class="lightbox">Electric vs. Petrol</a> <a href="javascript:void" data-type="youtube" data-id="3SAxXUIre28" class="lightbox">How Electric Autos Work</a> <a href="javascript:void" data-type="youtube" data-id="ARd-Om2VyiE" class="lightbox">Planetary Gear Set</a> <a href="javascript:void" data-type="youtube" data-id="auQgOtveQi0" class="lightbox">Automatic vs. Manual Transmission</a> <a href="javascript:void" data-type="youtube" data-id="lFAtc-zOKZs" class="lightbox">Dual Clutch Transmission</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions