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 8158359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:34:32+00:00 2026-06-06T17:34:32+00:00

I am going to call the elements of the following array into jquery. $options[]

  • 0

I am going to call the elements of the following array into jquery.

$options[] = array( 'title' => 'Upload Favicon',
                    'id'    => 'favicon',
                    'type'  => 'upload' );

I have tried the following, but it does not work..

jquery("'.$option['id'].'").hide();

May be I am wrong, but I myself guess that it is because in the jquery code there is no # for id calling, but I do not know how to add #.

Please help..

  • 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-06T17:34:33+00:00Added an answer on June 6, 2026 at 5:34 pm

    The obvious problem is here:

    $options[] = array( 'title' => 'Upload Favicon',  
            ^^
    

    This says “add an element to the array $options, and set that element’s value to the array 'title' => 'Upload Favicon'.... If $option is not yet set, it will be created as an array. So it will effectively be like this:

    $options = array (
        array ('title' => 'Upload Favicon',
               'id'    => 'favicon',
               'type'  => 'upload'
              );
    );
    

    This probably isn’t what you mean, simnce you’ll need to access it like this:

    $options[0]['id']
    

    To fix it, remove the []:

    $options = array( 'title' => 'Upload Favicon',
                      'id'    => 'favicon',
                      'type'  => 'upload' 
                    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have the following code, the filter call back gets called but the
I need to have a fixed-size array of elements and to call on them
I've got some very odd behaviour going on. I have the following JQuery: myElement.fadeOut(100);
I'm using Bing API to search for images by going the following call: http://api.bing.net/json.aspx?AppId=[my
Going through happstack-lite tutorial : we build functions that have return type of ServerPart
So I have an image that I need to call .width and .height but
I have the following form: <form id=vintro-upload-form action={url}?nexturl={nextUrl} method=post enctype=multipart/form-data > <input name=file type=file/>
If methods/functions I'm going to call involve the need of an open SqlConnection, I
I am going to create a web site or you may call it a
So i need to run a jdbc call that is going against a sql

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.