Eric Martin’s SimpleModal is really the best modal popup utility out there.

I originally started off with jqModal and had numerous issues with it as I started implementing more complex scenarios. The issues primarily have to deal with the fact that I actually have to register a container as a modal container. I consider this as a pull-type of programming. This usually results in issues esp. when you refresh the container div using AJAX. You now have to re-register the jqModal or it will not show modal popups anymore. That coupled with a couple of unique scenarios in some projects led me to think that jqModal while very powerful didn’t suit my needs.

Enter SimpleModal. SimpleModal had me at hello! The moment I saw the usage scenarios, I realized that SimpleModal would work for me in almost every scenario possible.

You can have an element id and at run-time w.o. any registration, just turn that element into a modal popup using:

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

Or you could potentially just obtain HTML as a string and then at run-time just display the HTML as a modal popup.

$.modal("<div><h1>SimpleModal</h1></div>");

This was enough for me to move my entire modal popup bandwagon to SimpleModal. The power lies in the push based model. You don’t need any registrations, you do not have to worry about re-registering etc. You pick the content you want, and display it at runtime w.o. any issues.

SimpleModal examples are also very nicely documented. All usage scenarios are very well documented. Customers that use the OSX style modal popup sample really love it.

Overall, I highly recommend giving SimpleModal a try. It will be very worth it.