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

  • Home
  • SEARCH
  • 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 101463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:46:33+00:00 2026-05-11T00:46:33+00:00

I am looking for a drop down list which can present the user with

  • 0

I am looking for a drop down list which can present the user with a series of images to choose from. Each image will be about 50×50 pixels and a small text description will be under the image. A jQuery and compatable ASP.NET solution would be preferred.

  • 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. 2026-05-11T00:46:34+00:00Added an answer on May 11, 2026 at 12:46 am

    I wrote a super basic jQuery plug in to accomplish this. What will happen is a a fake drop down list will be created from an existing select tag. The original select will be hidden, and the fake menu will be shown. As the new menu is being created, it will callback to get the HTML to show for each option. In this function you can pass back an image.

    (function($) { $.fn.templatedSelect = function(options) {  var defaults = {     selectHandleImage : 'selectHandle.gif',     width : '65px',     getOption : function(value, text) {             return text;         } }; var opts = $.extend(defaults, options);      var $originalSelect = this;      var $container = $(document.createElement('div'))         .css('clear', 'both')         .css('width', opts.width)         .hover(             function () {                 $selectBox.css('border-color', '#000000');             },              function () {                 if (!$menuItems.is(':visible'))                     $selectBox.css('border-color', '#C0C0C0');             })         .attr('id', 'imageSelect_container_' + this.attr('id'));      var $selectBox = $(document.createElement('div'))         .css('border', 'solid 1px #C0C0C0')         .css('overflow', 'hidden')         .css('width', '100%')      var $selectedItem = $(document.createElement('div'))         .css('padding', '4px');      var $selectHandle = $(document.createElement('div'))         .css('float', 'right')         .css('background-color', '#F0F0F0')         .css('padding', '4px')          .css('cursor', 'hand')                   .click(function(e) {             ToggleMenuItems();         })         .html(             $(document.createElement('img')).attr('src', opts.selectHandleImage)         );      var $menuItems = $(document.createElement('div'))         .css('position', 'absolute')         .css('margin-top', '-1px')         .css('border', 'solid 1px #000000')         .css('background-color', '#FFFFFF')         .hide();      $originalSelect.children('option').each(function(i, selected) {            var $menuItem = $(document.createElement('div'))             .css('padding', '4px')             .html(opts.getOption($(this).val(), $(this).text()))             .val($(this).val())             .click(function(e) {                 ToggleMenuItems();                 $originalSelect.val($(this).val());                 $selectedItem.html($(this).html());             })             .hover(                 function () {                     $(this).css('background-color', '#81BEF7');                 },                  function () {                     $(this).css('background-color', '#FFFFFF');                 })             .appendTo($menuItems);     });      //preset the selectedItem     $selectedItem.html(         $menuItems.children('div:eq('+$originalSelect[0].selectedIndex+')').html()     );      //put everything together     $selectBox.appendTo($container);     $selectHandle.appendTo($selectBox);     $selectedItem.appendTo($selectBox);     $menuItems.appendTo($container);      //hide the original select and put ours in     $originalSelect.hide();     $container.insertBefore($originalSelect);      $selectHandle.height($selectBox.height());     $menuItems.width($selectBox.width());      function ToggleMenuItems() {         if ($menuItems.is(':visible')) {             $menuItems.hide();             $selectBox.css('border', 'solid 1px #C0C0C0');         } else {             $menuItems.show();             $selectBox.css('border', 'solid 1px #000000');         }     }  }})(jQuery); 

    To use, call templatedSelect on your existing select. Also pass in a function to resolve the template for each item

        $().ready(function() {         $('#selectId').templatedSelect({             getOption : function(v, t) {                 return '<img src='' + v + ''/><br/>' + t;              }         }); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 165k
  • Answers 165k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Categories extend the original class, but they don't subclass it,… May 12, 2026 at 12:54 pm
  • Editorial Team
    Editorial Team added an answer Haven't tested this, but it's something like: RewriteRule \.php$ -… May 12, 2026 at 12:54 pm
  • Editorial Team
    Editorial Team added an answer "0:0:0:0:0:0:0:1" is the IPv6 loopback address as defined in RFC… May 12, 2026 at 12:54 pm

Related Questions

I am looking for a drop-down JavaScript menu. It should be the simplest and
I am currently hoping to use a PropertyGrid to allow users to edit some
I have created an MS Access 2003 application, set up as a split front-end/back-end
Due to politics at the very large finanial institution for which I work, I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.