daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function modalRender(text) {
  2.     var modal = $("<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"alertModal\" aria-hidden=\"true\"></div>").append(
  3.         $("<div class=\"modal-dialog\"></div>").append(
  4.             $("<div class=\"modal-content\"></div>").append(
  5.                 $("<div class=\"modal-body\">"+text+"</div>")
  6.             )
  7.         )
  8.     );
  9.     modal.modal();
  10. }
  11. //ps.
  12. //dependence jQuery.
RAW Paste Data
Top