EasyUI Forum
May 03, 2024, 04:58:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tagbox + serialize duplicate field e values  (Read 4277 times)
thiago_brum
Newbie
*
Posts: 26


View Profile Email
« on: October 01, 2018, 12:50:29 PM »

If I use serialize to get the values of my form, the tagboxs get the field e value duplicate.

Ex:

console.log($('#cod_familia_item').combobox('getValues')); // output: "C,L,F"

  $('#form_tabela').submit(function(e){
   e.preventDefault();
   
   console.log($(this).serialize()); // output: "cod_familia_item=C&cod_familia_item=L&cod_familia_item=F"

...

how can I get the result of serialize like this  "cod_familia_item=C,L,F"?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: October 02, 2018, 06:51:14 AM »

Please set the 'multivalue' property to false.
Logged
thiago_brum
Newbie
*
Posts: 26


View Profile Email
« Reply #2 on: October 02, 2018, 07:42:39 AM »

Thanks!!!!  Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!