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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:20:44+00:00 2026-06-16T03:20:44+00:00

I am using a plugin with WordPress for contact forms, and have a file

  • 0

I am using a plugin with WordPress for contact forms, and have a file upload. I can’t assign an “ID” or class to the field, it only has a name. How can I select this field to get the value and display it in a text field? I was using this code, which worked perfectly when the upload field had an ID.. So I need to figure out how to modify it to work with just a field name.. The name is “CustomFormsFileUpload_945”

$(function() {
    $("#ufo-field-id-945").change(function() {
        $("#ufo-field-id-948").val($(this).val())

        var string = $("#ufo-field-id-948").val();
        var new_string = string.replace('C:\\fakepath\\', '');
        $("#ufo-field-id-948").val(new_string);

    });
});​
  • 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-16T03:20:46+00:00Added an answer on June 16, 2026 at 3:20 am

    You can use an attribute selector:

    $('[name="CustomFormsFileUpload_945"]')
    

    (And if you don’t actually have both 945 and 948 there, you should keep it in a variable.)

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

Sidebar

Related Questions

I am using Wordpress Custom Field Template Plugin - http://wordpress.org/extend/plugins/custom-field-template/ I create some File
I'm using the contact form 7 plugin in wordpress and I have generated a
I'm using Contact Form 7 plugin in a WordPress template. I created the form
I am using following WordPress plugin to send email. http://coffee2code.com/wp-plugins/configure-smtp/ I have done configuration,
I'm using a WordPress plugin Easy FancyBox. It uses a dynamic php file for
I am using WordPress. My contact form plugin is contact form 7. If your
I am using this plugin in Wordpress http://www.iwebix.de/front-slider-wordpress-plugin-demo/ As you can see in the
I'm using the jQuery Validation plugin with Wordpress to validate my contact page. I
I am using a wordpress plugin for sliding images and text. This banner has
I'm using a wordpress plugin shorttag which needs one field to load through a

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.