dimanche 9 août 2020

issue with text area nic editor data not update?

i have facing some problems one is why i am getting 419 status error and then how can i send to controller multple data?

$(document).on( "click", '.submit',function(event) {
event.preventDefault();               
    var nicE = new nicEditors.findEditor('notes');
    var question = nicE.getContent();        
    var editid = $(this).attr('id');

      
    $('.test'+editid).hide();
    $('#test1'+editid).show();
    var formdata= new FormData($('#'+editid)[0]);
    var fileSelect = $("csvdocument").val();
    
    
     $.ajax({
           
           url:"updatenotes",
           type:"POST",
           data: {'formdata':formdata,'question':question, '_token': "$('input[name=_token]').val()"},
           enctype: 'multipart/form-data',
           contentType: false,
           cache: false,
           processData: false
           }).success(function(response)
           {

            alert('response');
            //location.reload();
            
          });


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire