twitter/bootstrap — Issue #464: Modal windows js
Author: javiervd
Created: 2011-10-21 21:14:33+00:00
State: open

Hi, I've been playing with the bootstrap lately and I have to say I love the modal windows functionality, one "problem" I have encountered though is that it relies on a hidden `.modal` element to display it.

For example: let's say I have a list of 20+ products per page and that I want to show a modal window with more info about them when the users click the product name, the way that it's now I'd have to create 20+ hidden `div` elements with the info about them and different ids so I can show each modal window on click. I think this isn't very efficient, it'd be nice that I could pass an url as an argument so I can load the modal content "on demand" via ajax kind of like [Fancybox](http://fancybox.net/howto) or [Thickbox](http://jquery.com/demo/thickbox/) works.

I think those plugins create the modal window inside the js instead of taking an existing element in the dom and show/hidde it, but I'm not sure how to translate using the twitter modal styles, still it'd be a nice addition.