Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:07:11+00:00 2026-06-18T08:07:11+00:00

I have a small problem with a javascript variable that I cannot figure out.

  • 0

I have a small problem with a javascript variable that I cannot figure out.
I am trying to pass a variable to a Jquery function parameter but it doesn’t work.

Original code:

$(".bt-fs-dialog").fSelector({
  max: 25,
  excludeIds: [],
  getStoredFriends: [],
  closeOverlayClick: true,

});

Now I want to pass values to the getStoredFriends field.
The documentation says it should be added like this:
getStoredFriends: [12345678,5484545],

So this is what I do:

var testresponse = "193102451,731800273";

$(".bt-fs-dialog").fSelector({
  max: 25,
  excludeIds: [],
  getStoredFriends: testresponse,
  closeOverlayClick: true,

});

This doesn’t work. No values are added to the function. I also tried to pass the values as an array:

var testresponse = new Array();
testresponse[0] = "193102451";
testresponse[1] = "731800273";

$(".bt-fs-dialog").fSelector({
  max: 25,
  excludeIds: [],
  getStoredFriends: testreponse,
  closeOverlayClick: true,

});

This also doesn’t work.
Can anyone explain how I can pass the values to this function?
Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:07:12+00:00Added an answer on June 18, 2026 at 8:07 am

    [12345678,5484545] is an array of numbers, so that’s probably what expects this function.

    Try with

    var testresponse = []; // better than new Array()
    testresponse.push(193102451); // using push you don't have to specify the index
    testresponse.push(731800273);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small problem with my jQuery script. <script language=javascript> $(document).ready(function(){ $('.roll-li').click(function(){ if
I have a small problem which i can't seem to figure out. I tried
I'm trying to learn JQuery - and I have a small problem with ajax.
I have small problem with Spring MVC. Basically what I'm trying to do is
I have a small problem and I've figured out where when and why it
I have a small problem. When im executing a javascript in an address bar
I have a small problem with an Xpage Application and hope that someone has
I have a small problem when my code is retrieved by javaScript from Python,
i have a small problem. I'm learning Javascript and I decided to make a
I have a small programming problem (php & javascript). On index.php page I'm printing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.