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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:51:38+00:00 2026-05-24T10:51:38+00:00

$options = array( ‘small’ => ‘Small Shirt’, ‘med’ => ‘Medium Shirt’, ‘large’ => ‘Large

  • 0
$options = array(
              'small'  => 'Small Shirt',
              'med'    => 'Medium Shirt',
              'large'   => 'Large Shirt',
              'xlarge' => 'Extra Large Shirt',
            );    echo form_dropdown('some_name', $options, '  ' ,'id='some_id');

Now i want to hide this listbox .. How do i do this??

  • 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-05-24T10:51:39+00:00Added an answer on May 24, 2026 at 10:51 am

    Hide? you mean with javascript? You’re not very clear in your question, so if I misunderstood just let know

      $options = array(........);
      echo form_dropdown('some_name',$options,'','id="some_id"');
    

    Hiding:

    Using jQuery:

    $(document).ready(function(){
        $('#some_id').hide('fast');
    });
    

    Or with CSS:

    #some_id { display:none; }  /* this will also free up the space used by the dropdown*/
    #some_id { visibility:hidden; } /* this just makes it invisible, but the space it occupies its preserved*/
    

    Note that as forth parameter to the form_dropdown() you pass a string, so you could give it an id, a class, an onlick event, whatever. So, you can give it a 'class="invisible" id="some_id" onclick="myfunction"' and manage it’s visibility with that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The $wrap array is a wrapped data and options array. How can I echo
echo $this->Form->create('AmazonMatches', array('action' => 'selectMatches')); echo $this->Form->input('option_id', array('options' => $allAmazonMatches, 'type' => 'radio')); echo
I have this line: echo $form->input('management_categories',array('options' => $instrumentCategoriesManagement,'type' => 'select','multiple' => 'checkbox','selected' => $management_categories));
How do I extend my parent's options array for child classes in PHP? I
I am displaying a form in the following manner: <?php echo $this->Form->create('AmazonMatches', array('action' =>
Is there a way to change the options array of an html select list
I do not understand how I can send an array with options to my
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
When using Validates_uniqueness_of with the :scope option, is it valid to pass an array
What options / methods / software are available to convert a JAR file to

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.