jhunlio
jhunlio

Reputation: 2660

newbie in jquery - jquery pop up

I see this nice jquery plugin here: prettyphoto jquery lightbox is there any way to achieve like this with a simple jquery only.

I only need is to pop up and Inline content. your reply is big help.

if you can show demonstration in fiddle or something i appreciate!

Upvotes: 1

Views: 163

Answers (4)

dunli
dunli

Reputation: 1376

You can, here. Mostly I did the work using jquery.

You can start from that.

Hope it helps.

UPDATE:

I have updated the jsfiddle. But some css properties should be set in the jquery for it to work.

Upvotes: 2

Swarne27
Swarne27

Reputation: 5737

You could use jQueryUI dialog,

simple implementation like the following jqueryui demo

$(document).ready(function() {
      $("#dialog").dialog();
}); 

<div id="dialog" style="display:none">
    <div>
        Your Dialog content
    </div>
</div>

Upvotes: 0

Tieson T.
Tieson T.

Reputation: 21191

If you're looking for a simple "dialog" SimpleModal might be about right: http://www.ericmmartin.com/projects/simplemodal/

It's not a "lightbox" plugin per se, but it's a lot lighter than adding jQuery UI. Seems fairly simple, too:

$("#your-element-id").modal();

You could use this for text, images, forms, and so on...

Upvotes: 1

SoWhat
SoWhat

Reputation: 5622

The easy way is to use jQuery UI dialogs. http://jqueryui.com/dialog/

Ofcourse a pure solution would be to define the lightbox in css, populate it with jQuery and show it.

Upvotes: 0

Related Questions