MODAL DIALOGS

MODAL DIALOGS

Modal dialogs are the ultimate way to get the user’s attention, as the user can’t interact with the rest of the page without first closing the modal dialog. Modal dialogs can contain whatever HTML you need to present, including status messages, videos, or forms.

JAVASCRIPT AND BOOTSTRAP

In response to several questions I’ve seen in the discussion forums, I wanted to spend a little time talking about jQuery/JavaScript and Bootstrap. Now, if you’re not familiar with JavaScript don’t worry about this section. It is, as the title implies, bonus content.

One thing that you’ve probably noticed is Bootstrap does a lot of work for you, allowing you to avoid writing JavaScript in many cases. However, there is an API that is available you can use for certain operations, such as closing a modal dialog box. But even for actions that don’t have Bootstrap API calls, such as toggling validation, you’ll notice that you can accomplish the desired result by simply adding and removing the appropriate classes, which jQuery makes very simple.

<!DOCTYPE html>

<html>

<head>

<title>Confirm !</title>

<meta charset=”utf-8″ />

<link href=”Styles/bootstrap.css” rel=”stylesheet” />

</head>

<body>

Leave a comment