title: Cannot edit the form in this jquery code lines when display on browser
body: <p>Note that this isnt my code, so i dont understand that much. So,this the html that used to trigger the divedit-member, as you can see below</p>
  
  <pre><code>&lt;div class="right-sidebar divedit-member"&gt;
      &lt;div class="container-fluid"&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;div class="member-form"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>then this is script that at i use to edit the form of to edit MEMBER, just wanted to change the value of input tag name=s_year to other such as (1st, 2nd,3rd) but then cant managed to do so. when im edited the option tag it still display this form, which i dont want..</p>
  
  <pre><code>$('.add_student').click(function()
  {   
      $('.divedit-member').toggle(effect, options, duration);
  
      var form = '&lt;form class="frm_add_student"&gt;\
                      &lt;br/&gt;&lt;br/&gt;&lt;h4 class=""&gt;&lt;/h4&gt;\
                      &lt;hr&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;School ID Number&lt;/label&gt;\
                          &lt;input type="number" name="sid_number" class="form-control" required autocomplete="off"&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;First Name&lt;/label&gt;\
                          &lt;input type="text" name="s_fname" class="form-control text-capitalize" required autocomplete="off"&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;Last Name&lt;/label&gt;\
                          &lt;input type="text" name="s_lname" class="form-control text-capitalize" required autocomplete="off"&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;Gender&lt;/label&gt;\
                          &lt;select name="s_gender" class="form-control" required&gt;\
                              &lt;option disabled selected&gt;Your gender&lt;/option&gt;\
                              &lt;option&gt;Male&lt;/option&gt;\
                              &lt;option&gt;Female&lt;/option&gt;\
                          &lt;/select&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;Contact Number&lt;/label&gt;\
                          &lt;input type="tel" name="s_contact" class="form-control" required autocomplete="off"&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;label&gt;Department&lt;/label&gt;\
                          &lt;select name="s_department" class="form-control" required&gt;\
                              &lt;option disabled selected&gt;Select department&lt;/option&gt;\
                              &lt;option&gt;FSKM&lt;/option&gt;\
                          &lt;/select&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group hide"&gt;\
                          &lt;label&gt;Major&lt;/label&gt;\
                          &lt;input type="text" name="s_major" class="form-control" autocomplete="off"&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;div class="row"&gt;\
                              &lt;div class="col-md-6"&gt;\
                                  &lt;label&gt;Year&lt;/label&gt;\
                                  &lt;select name="s_year" class="form-control" required&gt;\
                                      &lt;option selected disabled&gt;Select year&lt;/option&gt;\
                                      &lt;option&gt;1&lt;/option&gt;\
                                      &lt;option&gt;2&lt;/option&gt;\
                                      &lt;option&gt;3&lt;/option&gt;\
                                      &lt;option&gt;4&lt;/option&gt;\
                                      &lt;option&gt;5&lt;/option&gt;\
                                  &lt;/select&gt;\
                              &lt;/div&gt;\
                              &lt;div class="col-md-6"&gt;\
                                  &lt;label&gt;Section&lt;/label&gt;\
                                  &lt;input type="text" name="s_section" class="form-control text-capitalize" required autocomplete="off"&gt;\
                              &lt;/div&gt;\
                          &lt;/div&gt;\
                      &lt;/div&gt;\
                      &lt;div class="form-group"&gt;\
                          &lt;button class="btn btn-primary btn_faculty" type="submit"&gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt; Add&lt;/button&gt;\
                          &lt;button class="btn btn-danger btn_frm_add" type="reset"&gt;&lt;i class="fa fa-remove"&gt;&lt;/i&gt; Cancel&lt;/button&gt;\
                      &lt;/div&gt;\
                  &lt;/form&gt;';
  
          $('.member-form').html(form);
          $('.btn_frm_add').click(function(e){
              $('.divedit-member').toggle(effect, options, duration);
          });
  
          $('.frm_add_student').submit(function(e){
              e.preventDefault();
              var frmdata = $(this).serialize()+'&amp;key=add_newstudent';
  
              $.ajax({
                  type: "POST",
                  url: "../class/add/add",
                  data: frmdata
              })
              .done(function(data){
                  // console.log(data);
                  if(data == 1){
                      toastr.success('Student successfully added.');
                      $('.btn_frm_add').click();
                      table_member.ajax.reload(null,false);
  
                  }else if(data == 2){
                      toastr.warning('Student already exist.');
                  }else{
                      toastr.error('Failed to add.');
                  }
              });
  
          });
  
  });
  </code></pre>
  
  <p>If im wrong somewhere,please do help me.</p>