title: Open and Load Modal Window w/ Javascript and Codeigniter
body: <p>I'm using Codeigniter and Datatables together and need to load a modal popup when the user clicks "view" for a certain row of data. </p>
  
  <p>Here is my link with my onClick:</p>
  
  <pre><code>&lt;a href="#" onClick="javascript:notes_modal()"&gt;view&lt;/a&gt;
  </code></pre>
  
  <p>Here is my JS:</p>
  
  <pre><code>function notes_modal(data) {
      $.ajax({
          type: "POST",
          url: "../load_notes_modal",
      }).done(function ( html ) { 
          $("#selected_note").modal('show');
      });
  }
  </code></pre>
  
  <p>Here is my view that is being loaded by the "load_notes_modal" function I'm calling:</p>
  
  <pre><code>&lt;div class="modal fade" id="selected_note" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
  &lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
          Random Content!
          &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title" id="myModalLabel"&gt;View Location Note&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm not getting any errors, just no luck getting the modal to show. I'm new to JS and trying to learn, I might be headed in the complete wrong direction!</p>