views:

18

answers:

2

I have HTML like this:

<a href="#" class="modalInput glow" rel="#newsletter" >Newsletter!</a>

This opens a modal window, contents held in the #newsletter div.
Since I have not located code for this inside the source of the page, I assume this is an inbuilt functionality of jQuery, and I am not familiar with it.

I want to open the same modal window by code. What code do I have to run?

+1  A: 

I would look into the simple modal by Eric Martin.

I'm not aware of such functionality pre-built into JQuery, but with simple-modal it's extremely easy to pop a modal window. Just run something like this:

   $("#sample").modal();

This would show a modal with the contents of the #sample div.

Robban
A: 

This is the only dialog I am aware of that you can get from jQuery UI widgets.

gmcalab