Multiple Summernote textarea on one page -


whenever submit form multiple summernote textarea value empty on while dumping values.

view (html)

<form action="some/url" method="post"> <textarea name="agenda" class="editor"></textarea> .... <textarea name="details" class="editor"></textarea> </form> 

js

$('.editor').summernote(); 

backend

dd($request->all()); 

output

  array:17 [▼=   "type" => "7"   "company" => "1"   "event_date" => "2015-10-08"   "pub_date" => "2015-07-08"   "fiscal_year" => array:2 [▶]   "agenda" => ""   "title" => "title"   "details" => ""   "image" => uploadedfile {#29 ▶} ] 

serialized form output

$('#createannform').submit(function(e){ e.preventdefault(); console.log($(this).serialize()); 

});

console log output

type=7&company=1&event_date=2015-10-08&pub_date=2015-07-08&fiscal_year%5b%5d=2&agenda=&title=title&details= 

and error

uncaught typeerror: cannot read property 'val' of undefined(anonymous function)  @ summernote.min.js:2m.event.dispatch  @ jquery.js:4m.event.add.r.handle  @ jquery.js:4 

any nice. in advance


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -