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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:50:02+00:00 2026-05-27T14:50:02+00:00

Someone should be able to find this example for me or give an example..

  • 0

Someone should be able to find this example for me or give an example..

After hours of searching I found the answer using some bizare search terms in Google only for my 15 month old to close the browser window for me without book marking it! I had private browsing on so it didn’t save my history 🙁

I have a web form, I need to pass the value of one form field to another form field at the same time replace the white space with underscore using JQuery.

example of what I’m looking for

<input name="PageName" id="PageName" type="text" value="All About Us Page" />
<input name="PageURL" id="PageURL" type="hidden" value="all_about_us_page" />

so when the form is submitted it gives nice formatted URLs to the page(s) I don’t know much about JavaScript or JQuery and how to write variable to make it work.

Hope someone can give a working example, so at least I can get it working and in turn help someone searching in vien for the same solution the title of this should rank pretty high in Google for others to follow.

  • 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-27T14:50:02+00:00Added an answer on May 27, 2026 at 2:50 pm

    A little jQuery plugin to do something like this (this would put the value of the first matched element into the set of elements matched by the passed in selector):

    $.fn.copyTo = function(selector) {
        $(selector).val($(this[0]).val().replace(/\s/g, "_"));
    };
    

    Example usage:

    $("#source").copyTo("#dest");
    

    Here’s a working example.

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

Sidebar

Related Questions

In this thread some one commented that the following code should only be used
I'm new to this site, but it seems like someone out there should be
If this is in the apple doc then I've not been able to find
When should someone use structs instead of classes or vice versa in C++? I
What should someone know as an Entry Level, Mid-level, and Senior Developer working with
I have a three tier set-up. Someone suggested I should get the ConnectionString from
Where should I point someone to learn the basics of HTML/CSS? I personally got
I think it should be 01 but someone says its undefined, any reason for
I remember someone saying if you create a class through a lib you should
The title is a bit long, but it should be pretty straightforward for someone

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.