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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:58:21+00:00 2026-06-08T14:58:21+00:00

I have a partial with the below code: <%= form_for :subString_typed, :controller => deployment_group,

  • 0

I have a partial with the below code:

<%= form_for :subString_typed, :controller => "deployment_group", :remote=> true, :method => "get", :url => {:action => "show_workflow_list"}, :html => {:id => "subString_form"} do |f| %>
    <%= f.label :Substring %> <%= f.text_field :subString, :onkeyup => "show_alert()" %>
<%end%>

and down below in the same form, I wrote the javascript function for show_alert() like this:

<script type="text/javascript">   
function show_alert()
{
    $('#subString_typed_subString').change(function(){$('#subString_form').submit();});
}
</script> 

Will the above code submit the substring form when I type in a letter in the substring text field?
It does not work for me. Is my jQuery code wrong? My id’s are correct in the jQuery code, however I think I am using the wrong function .change() for the text field.
Please help

  • 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-08T14:58:29+00:00Added an answer on June 8, 2026 at 2:58 pm

    Are you wanting the form to submit when you keyup? Why not just call $(‘#subString_form’).submit() without the change() function

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

Sidebar

Related Questions

I have a form and a popup form as given below (partial code): import
I have 2 forms. Form1 (with code below) and Splash (just default form for
I have the below code, I am pinging a web address for a specified
I am using the below partial code to send email message to our client
I have the code below that is supposed to draw lines from the top
I want to program something in both C# and F#. I have partial classes
I have two partial view and I want to call one of them in
I have a partial view of a row for the table. Each row in
I have a partial view which is displayed on the top right of every
I have a partial that I want to display in a layout only when

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.