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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:40:39+00:00 2026-05-21T12:40:39+00:00

I am trying to create a page that contains a form with one field

  • 0

I am trying to create a page that contains a form with one field represented by a list of images. The user will select one of the images, enter some additional information and click a button to submit the data back to the server.

I’ve been able to generate the list using a for-each statement with div elements providing the correct layout and flow. I’ve looked at using the jQuery Selectable plug-in to manage selecting from the list, highlighting the selected item, etc. but am stuck at how I send the selected information back to the server.

First, I need a way to embed the identifier for each item in the html. Then I need to send the value of the selected item to the server when the form is submitted.

Am I on the right track or heading in the wrong direction? How can I make this work?

  • 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-21T12:40:40+00:00Added an answer on May 21, 2026 at 12:40 pm

    Not sure this is the best way to do it but after stumbling my way through over many hours, here is what I came up with:

    <style type="text/css">
        .ui-selected
        {
            background-color:Yellow;
        }
    </style>
    
    <script type="text/javascript">
        $(function () {
            $("#buttons").selectable(
            {
                filter: "div",
                selected: function (e, ui) {
                    var value = $(ui.selected).children("input").first().val();
    
                    $("#SelectedValue").val(value);
                }
            });
        });
    </script>
    
    <% using (Html.BeginForm())
       { %>
        <%= Html.Hidden("SelectedValue") %>
    <% } %>
    
    <div id="buttons">
        <% foreach (var item in Model.Items)
           { %>
            <div class="image_button_large"
                 style="float:left;"
                 title="<%= Html.Encode(item.Name) %>"
                 >
                <div class="button_image">&nbsp;</div>
                <%= Html.Encode(item.Name) %>
                <%= Html.Hidden("itemId", item.ID) %>
            </div>
        <% } %>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a login page that will send the user to
I'm trying to create a page that contains a grid and searching. The issue
I'm trying to create a very simple page that contains a container, a header,
I'm trying to create the effect of a button that 'lifts' from the page
I'm trying to create a Custom Part that just drops text into the page.
I am trying to create a page to display a list of links for
I'm trying to create a page by using view 2. This page list all
I am trying to create a page for new user sign where i am
I have a form that contains a tab canvas. On the second canvas page
I am trying to create a UITableView Section that contains two buttons aligned horizontally.

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.