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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:19:50+00:00 2026-06-04T05:19:50+00:00

I have a collection select <%=f.collection_select :logic, @logics, :last, :first, :prompt => true%> now

  • 0

I have a collection select

<%=f.collection_select :logic, @logics, :last, :first, :prompt => true%>

now i have only 5 value in this drop down and on selecting different value from list i want to show different text down to this drop down

like i have span below this collection select is

 <td><span class="note" id="spanid1" >Select the logic type.</span></td>  

now suppose we have 5 different value in drop down is

A,B,C,D,E

and when we select

A message in span is “this logic give you daily spend”

b message in span is “this logic will give daily saving”

c message in span is “daily profit” and so on

now how can i do this and can we change the value in same span dynamically.

  • 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-04T05:19:51+00:00Added an answer on June 4, 2026 at 5:19 am

    Do you mean something like:

    var names = {
      A : "spend",
      B : "saving",
      ..and so on
    };
    $("#yourSelectElement").change(function() {
      //$(this).val() will have A,B,C,D or E
      var spanText = "this logic will give " + names.$(this).val();
      $(".note").html(spanText);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Collection List<Car> . How to compare each item from this collection with
for example I have collection foo of documents like that: {tag_cloud:[{value:games, count:10}, {value:girls, count:500}]}
I have a collection of the form: map<key, list<object> > I only ever insert
I have a collection like this List<int> {1,15,17,8,3}; how to get a flat string
I have 3 collection datatable that shows in this below Month: January ID NAME
I'm converting some VB6 logic to C# and have encountered the following SELECT/CASE statement.
I have this function that I need to return true or false. Problem is,
I to do connection and have error. from u in db.aspnet_users where u.UserName.Equals(email) select
I have some legacy SQL (SP) declare @FactorCollectionId int; select @FactorCollectionId = collectionID from
I'm planning to have collection of items stored in a TCollection. Each item will

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.