jquery - Insert bootstrap to page since Chrome extension -


i have chrome extension have popup button, when press button of extension, build modal (with example of bootstrap) in variable, append modal:

$("body").prepend(modal); 

the div modal in inspector can see. have in manifest.json

"permissions": ["tabs", "activetab", "http://*/"],     "content_scripts": [    {      "matches": ["<all_urls>"],      "css": ["css/bootstrap.min.css","css/estilo.css"],      "js": ["js/jquery.min.js", "js/bootstrap.min.js", "js/script.js"],      "run_at": "document_end"    } ],  "web_accessible_resources":["img/*.png", "css/bootstrap.min.css", "js/jquery.min.js", "js/bootstrap.min.js"], 

when onclick in button have mention code below:

function insertarmodal(info){     var modal = construirmodal(info);     $("body").prepend(modal);     $("#mdlinformacion").modal("show"); } 

mdlinformacion id define modal.

now line generate error:

$("#mdlinformacion").modal("show");  uncaught typeerror: $(...).modal not function 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -