title: Converting an alert into a magnificPopup modal
body: <p>Re-factoring an alert into a modal popup using magnificPopup. Not sure that I am calling magnificPopup correctly. Is this the correct syntax? Thanks for any help!</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function () {
          $('.readMore').each(function () {
              if (isDivClipped(this)) {
                  $(this).wrap("&lt;div class='readmorewrapper'&gt;&lt;/div&gt;");
                  $(this).after("&lt;a href='#' onclick='showReadMore(this);'&gt;Read More...&lt;/a&gt;");
              }
          });
  
  
      });
      function showReadMore(el) {
          var modalContent = ($(el).closest('.readmorewrapper').find('.readMore').text());
          $('modalContent').magnificPopup;
      }
      function isDivClipped(el) {
          return true;
      }
  &lt;/script&gt;
  </code></pre>