EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 03, 2024, 05:52:01 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Tagbox + serialize duplicate field e values
Pages: [
1
]
« previous
next »
Print
Author
Topic: Tagbox + serialize duplicate field e values (Read 4278 times)
thiago_brum
Newbie
Posts: 26
Tagbox + serialize duplicate field e values
«
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
Re: Tagbox + serialize duplicate field e values
«
Reply #1 on:
October 02, 2018, 06:51:14 AM »
Please set the 'multivalue' property to false.
Logged
thiago_brum
Newbie
Posts: 26
Re: Tagbox + serialize duplicate field e values
«
Reply #2 on:
October 02, 2018, 07:42:39 AM »
Thanks!!!!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...