{"id":968,"date":"2024-01-19T16:55:00","date_gmt":"2024-01-19T16:55:00","guid":{"rendered":"https:\/\/codehim.com\/?p=968"},"modified":"2024-01-22T14:56:47","modified_gmt":"2024-01-22T09:56:47","slug":"bootstrap-create-modal-dynamically-in-javascript-jquery","status":"publish","type":"post","link":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/","title":{"rendered":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery"},"content":{"rendered":"<section class=\"cm-tb\">\n<div class=\"cm-row\">\n<p class=\"plugin-intro\">Bootstrap Create Modal Dynamically in JavaScript. The <code> bootstrap-show-modal.js <\/code> lets you to create an awesome, responsive, alert \/ confirm dialog boxes dynamically.  <\/p>\n<\/p><\/div>\n<div class=\"cm-row\">\n<\/div>\n<\/section>\n<section class=\"codehim-wrapper\">\n<div class=\"d-row\">\n<h2>Plugin Preview<\/h2>\n<figure class=\"item-preview\">\n<div id=\"featured-img-id\"><img decoding=\"async\" src=\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\" alt=\"Bootstrap Create Modal Dynamically in JavaScript\" \/><\/div><\/figure>\n<div class=\"item-like-share\">\n<div class=\"codehim-share\"> <span class=\"share-title\">Share this:<\/span> <span class=\"share-btn-container\"> <\/span> <\/div><\/p>\n<\/div>\n<p><span class=\"small-text\"><a href=\"https:\/\/codehim.com\/how-to-start-using-jquery\/\"> How to start using jQuery?<\/a><\/span><br \/>\n<span class=\"large-text\"><a href=\"https:\/\/codehim.com\"> More jQuery Top, Best and New Plugins <\/a><\/span><br \/>\n<span class=\"small-text\"><a href=\"https:\/\/codehim.com\/tag\/top-100\/\"> Top 100 jQuery Plugins<\/a><\/span>\n<\/div>\n<div class=\"d-row\">\n<h2> Plugin Overview<\/h2>\n<table class=\"plugin-overview\">\n<tbody>\n<tr>\n<td><i class=\"fa fa-plug\"><\/i> Plugin:<\/td>\n<td>  bootstrap-show-modal.js<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-user\"><\/i> Author:<\/td>\n<td>Stefan Haack<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-text-o\"><\/i> Licence:<\/td>\n<td><a href=\"https:\/\/opensource.org\/licenses\/MIT\" class=\"external\" target=\"_blank\" rel=\"noopener noreferrer\"> MIT Licence <\/a><\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-calendar-check-o\"><\/i> Published:<\/td>\n<td class=\"publish-date\">January 19, 2024<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-github\"><\/i>Repository:<\/td>\n<td> <a href=\"https:\/\/github.com\/shaack\/bootstrap-show-modal\" target=\"_blank\" class=\"external\" rel=\"noopener noreferrer\">Fork on GitHub <\/a><\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-link\"><\/i> Dependencies:<\/td>\n<td><a href=\"https:\/\/jquery.com\/download\/\" target=\"_blank\" class=\"external\" rel=\"noopener noreferrer\">jQuery 1.3.1 <\/a> or Latest version and <a href=\"https:\/\/getbootstrap.com\/docs\/4.3\/getting-started\/download\/\" class=\"external\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap 4.1.3 <\/a><\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-code-o\"><\/i> File Type:<\/td>\n<td>zip archive (HTML, CSS &amp; JavaScript)<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-archive-o\"><\/i> Package Size:<\/td>\n<td>8.7 KB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"cd-action\"><a class=\"btn demo\" target=\"_blank\" href=\"https:\/\/codehim.com\/demo\/dynamic-bootstrap-modals\/\" rel=\"nofollow noopener noreferrer\"> Demo <\/a><a class=\"btn download\" href=\"https:\/\/codehim.com\/download\/dynamic-bootstrap-modals.zip\" rel=\"nofollow\"> Download<\/a><\/div>\n<\/div>\n<\/section>\n<div class=\"ad-after-overview\">\n<\/div>\n<h2> How to Use It:<\/h2>\n<p>1. Load all the necessary files into HTML document. <\/p>\n<pre class=\"prettyprint lang-html\">\r\n&lt;!--Bootstrap 4.3.1 CSS--&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/bootswatch\/4.3.1\/flatly\/bootstrap.min.css&quot;&gt;\r\n\r\n&lt;!--jQuery 3.3.1 Slim--&gt;\r\n&lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.3.1.slim.min.js&quot; integrity=&quot;sha384-q8i\/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\r\n\r\n&lt;!--Popper 1.14.7 Js--&gt;\r\n&lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/popper.js\/1.14.7\/umd\/popper.min.js&quot; integrity=&quot;sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\r\n\r\n&lt;!--Bootstrap 4.3.1 Js--&gt;\r\n&lt;script src=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/js\/bootstrap.min.js&quot; integrity=&quot;sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf\/nJGzIxFDsf4x0xIM+B07jRM&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>2. Include the <code> bootstrap-show-modal.js <\/code> file into your webpage.<\/p>\n<pre class=\"prettyprint lang-html\">\r\n&lt;script src=&quot;src\/bootstrap-show-modal.js&quot;&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>3. To create a simple modal box, following is the javascript structure.<\/p>\n<pre class=\"prettyprint lang-js\">\r\n$.showModal({title: \"Hello World!\", body: \"A very simple modal dialog without buttons.\"})\r\n<\/pre>\n<p>4. To create alert dialog box, use the following js structure.<\/p>\n<pre class=\"prettyprint lang-js\">\r\n$.showAlert({title: \"Hi\", body: \"Please press ok, if you like or dislike cookies.\"})\r\n<\/pre>\n<p>5. To create a confirm popup modal box:<\/p>\n<pre class=\"prettyprint lang-js\">\r\n$.showConfirm({\r\n    title: \"Please confirm\", body: \"Do you like cats?\", textTrue: \"Yes\", textFalse: \"No\",\r\n    onSubmit: function (result) { \/\/ callback on confirm\r\n        if (result) {\r\n            $.showAlert({title: \"Result: \" + result, body: \"You like cats.\"})\r\n        } else {\r\n            $.showAlert({title: \"Result: \" + result, body: \"You don't like cats.\"})\r\n        }\r\n    },\r\n    onDispose: function() {\r\n        console.log(\"The confirm dialog vanished\")\r\n    }\r\n})\r\n<\/pre>\n<p>6. All the available options to customize plugin looks &amp; working.<\/p>\n<pre class=\"prettyprint lang-js\">\r\nprops = {\r\n    title: \"\", \/\/ the dialog title html\r\n    body: \"\", \/\/ the dialog body html\r\n    footer: \"\", \/\/ the dialog footer html (mainly used for buttons)\r\n    modalClass: \"fade\", \/\/ Additional css for \".modal\", \"fade\" for fade effect\r\n    modalDialogClass: \"\", \/\/ Additional css for \".modal-dialog\", like \"modal-lg\" or \"modal-sm\" for sizing\r\n    options: null, \/\/ The Bootstrap modal options as described here: https:\/\/getbootstrap.com\/docs\/4.0\/components\/modal\/#options\r\n    \/\/ Events:\r\n    onCreate: null, \/\/ Callback, called after the modal was created\r\n    onDispose: null, \/\/ Callback, called after the modal was disposed\r\n    onSubmit: null \/\/ $.showConfirm only. Callback, called after yes or no was pressed\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap Create Modal Dynamically in JavaScript. The bootstrap-show-modal.js lets you to create an awesome, responsive, alert \/ confirm dialog boxes&#8230;<\/p>\n","protected":false},"author":1,"featured_media":972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[44],"tags":[],"class_list":["post-968","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modal"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-19T16:55:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:56:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery\",\"datePublished\":\"2024-01-19T16:55:00+00:00\",\"dateModified\":\"2024-01-22T09:56:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\"},\"wordCount\":139,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\",\"articleSection\":[\"Modal\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\",\"url\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\",\"name\":\"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\",\"datePublished\":\"2024-01-19T16:55:00+00:00\",\"dateModified\":\"2024-01-22T09:56:47+00:00\",\"description\":\"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg\",\"width\":1280,\"height\":720,\"caption\":\"Bootstrap Create Modal Dynamically in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Modal\",\"item\":\"https:\/\/codehim.com\/category\/modal\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim","description":"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim","og_description":"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.","og_url":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-19T16:55:00+00:00","article_modified_time":"2024-01-22T09:56:47+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg","type":"image\/jpeg"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery","datePublished":"2024-01-19T16:55:00+00:00","dateModified":"2024-01-22T09:56:47+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/"},"wordCount":139,"commentCount":1,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg","articleSection":["Modal"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/","url":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/","name":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg","datePublished":"2024-01-19T16:55:00+00:00","dateModified":"2024-01-22T09:56:47+00:00","description":"Bootstrap 4 \/ jQuery plugin wrapper, to create modal dynamically in JavaScript \/ jQuery. It lets you creat alert\/confirm dialog boxes dynamically.","breadcrumb":{"@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/02\/bootstrap-dynamically-modals.jpg","width":1280,"height":720,"caption":"Bootstrap Create Modal Dynamically in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/modal\/bootstrap-create-modal-dynamically-in-javascript-jquery\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Modal","item":"https:\/\/codehim.com\/category\/modal\/"},{"@type":"ListItem","position":3,"name":"Bootstrap Create Modal Dynamically in JavaScript \/ jQuery"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":9566,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/968\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/972"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}