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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:51:02+00:00 2026-06-17T05:51:02+00:00

I have a form, html elements get added to it via ajax calls, and

  • 0

I have a form, html elements get added to it via ajax calls, and I want to be able to pass the values of the added html elements to the form submit. Details:

I have a simple form_for:

<%= form_tag(:controller => "operations", :action => "new") do %>
<%= select_tag "operation", options_for_select(%w{a s m d} )%>

depending on a user’s action on the select tag, I do

$.get(url, params,function(response){
}, 'script')});

The ajax call returns an html radio_button_tag i.e. the url called has something like:

<div class="modifer">
<%= radio_button_tag elid, 'no' %>
</div>

The user can now select the radio button, and I want to pass this value as part of the form submit. I really don’t understand how to pass the value of the radio_button_tag (elid) as part of the form submit.

Would appreciate some clarification on 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-06-17T05:51:03+00:00Added an answer on June 17, 2026 at 5:51 am

    Are you inserting the .modifier div into the form? If so, it will be submitted with the form.

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

Sidebar

Related Questions

I have custom Question objects which I render into html form elements. I want
I have a HTML form where i dynamically create elements and set its name
TL;DR version I have a big form with hundreds of html input elements on
I have a large form written in HTML (with 1,000+ input elements). I have
I have a problem with html form elements names as assotiative arrays. <form name=ff
Using JSP, in my HTML, I have a form that I submit to another
I have a small problem with jQuery $.ajax() function. I have a form where
I have a multi select box in a form. the elements in this select
I have a simple form. Its got one field and a submit button. I
I'm trying to get some basic ajax working on rails. I have a comon

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.