Author Topic: Save array data from multiselect.  (Read 1873 times)

dani2505

  • Newbie
  • *
  • Posts: 2
    • View Profile
Save array data from multiselect.
« on: May 29, 2020, 02:47:04 am »
Hi PQ Team,

Its a wonderful program i have seen but am trying to save the selected array into an variable. I tried almost to 50 times but couldnt get it how it works.

.val() , find(":selected") , .text() noting works..

Can you please help me with this please.....

Code examples:
Initialize the pqSelect with multiplePlaceholder option specified.
1
$( ".selector" ).pqSelect( { multiplePlaceholder: 'Select some options' } } );

Get or set the multiplePlaceholder option, after initialization:

//getter
var multiplePlaceholder = $( ".selector" ).pqSelect( "option", "multiplePlaceholder" );
 
//setter
$( ".selector" ).pqSelect( "option", "multiplePlaceholder", "Select any options" );

dani2505

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Save array data from multiselect.
« Reply #1 on: May 29, 2020, 03:27:29 am »
I got the answer.