jQuery Chaos Modal: A Simple yet extendable jQuery modal script built for use with inline HTML, forms, and images in mind

A Simple yet extendable jQuery modal script built for use with inline HTML, forms, and images in mind.

There are many other modal plugins out there. The goal of this project is to make one that is dead simple to use and implement, while still allowing for easy customization.

Features

  • Stand alone JS file. No additional CSS file required.
  • Window resize handling for better performance responsive websites.
  • Vertical scroll position retention to maintain the user’s position on the webpage.
  • On-the-fly modal HTML generation. No preprocessing loops before the page is shown to the user.
  • Content type handling:
    • Image tags
    • Links to images
    • Inline HTML
    • Inline HTML defined by element id
  • Iframe lazy loading for iframes in hidden modal content to improve page load.

Download: https://github.com/msigley/jquery-chaos-modal

Demonstration: https://github.com/msigley/jquery-chaos-modal/blob/master/README.md

Plugin homepage: https://github.com/msigley/jquery-chaos-modal

Implementation:

Options:

Screenshots:

How a Loop Through a JavaScript Object?

How a Loop through a JavaScript object?Javascript Objects are Variables Containing Variables.In Java…

How to Search Item in List in JavaScript

Multi Step Form Using HTML and JavaScript

Form is the important part in web design. Form is the primary interface to the user by which user is…

How to Create Custom CSS, jQuery Autocomplete Plugin

Web developers often use autocomplete features in websites as a part of their work. Yet lot of good …

How to Make Sticky Sidebar Using jQuery and CSS

Sticky sidebar is an essential part of web development. Not in all cases but for some cases where ou…

Selectors, Animation, and AJAX – jQuery Tutorial And Examples

By now I’m sure you have grasped at least the basics and simplicity of the jQuery library. Now it’s …