title: Active modal view codeigniter
body: <p>Hy,
  I want to edit some data using modal view. So I make the code for modal view and I am unable to edit input area.</p>
  
  <p><img src="https://i.stack.imgur.com/3QiXw.jpg" alt="You can see the image with issue here."></p>
  
  <p>The code for my modal is:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;?php
      $edit_data      =   $this-&gt;db-&gt;get_where('disertatie' , array('disertatie_id' =&gt; $param2) )-&gt;result_array();
      foreach ( $edit_data as $row):
  ?&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-md-12"&gt;
          &lt;div class="panel panel-primary" data-collapsed="0"&gt;
              &lt;div class="panel-heading"&gt;
                  &lt;div class="panel-title" &gt;
                      &lt;i class="entypo-plus-circled"&gt;&lt;/i&gt;
                      &lt;?php echo get_phrase('editare_nota_student');?&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;div class="panel-body"&gt;
              &lt;?php echo form_open(site_url('teacher/update_disertatie/do_update/'.$row['disertatie_id']) , array('class' =&gt; 'form-horizontal form-groups-bordered validate','target'=&gt;'_top'));?&gt;
  
              &lt;div class="form-group"&gt;
          .......................
          &lt;script type="text/javascript"&gt;
  
              // ajax form plugin calls at each modal loading,
              $(document).ready(function() {
  
                  // SelectBoxIt Dropdown replacement
                  if($.isFunction($.fn.selectBoxIt))
                  {
                      $("select.selectboxit").each(function(i, el)
                      {
                          var $this = $(el),
                              opts = {
                                  showFirstOption: attrDefault($this, 'first-option', true),
                                  'native': attrDefault($this, 'native', false),
                                  defaultText: attrDefault($this, 'text', ''),
                              };
  
                          $this.addClass('visible');
                          $this.selectBoxIt(opts);
                      });
                  }
              });
  
            &lt;/script&gt;
  </code></pre>