Open In App
Related Articles

How to create a Photo lightbox popup using jQuery Mobile ?

Improve Article
Save Article
Like Article

jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be creating a Photo lightbox popup using jQuery Mobile.

Approach: Add jQuery Mobile scripts needed for your project.

<link rel=”stylesheet” href=”” />

<script src=””></script>

<script src=””></script>

Example: We will create a photo lightbox popup using jQuery Mobile. It can be created by placing an image in a popup.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
            Photo lightbox popup using jQuery Mobile
        <a href="#popupImage" data-rel="popup" 
            data-position-to="window" data-transition="fade">
            <img class="popphoto" src=
                alt="jQuery" style="width: 20%;">
        <div data-role="popup" id="popupImage" data-corners="false">
            <a href="#" data-rel="back"
                class="ui-btn ui-corner-all ui-shadow 
                ui-btn-a ui-icon-delete ui-btn-icon-notext 
            <img class="popphoto" src=
            style="max-height:512px;" alt="jQuery Image">


Last Updated : 14 Dec, 2020
Like Article
Save Article
Similar Reads
Related Tutorials