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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:04:28+00:00 2026-05-27T20:04:28+00:00

I have a problem I cant seem to figure out, been looking at it

  • 0

I have a problem I cant seem to figure out, been looking at it for the last 2 days…

I’m testing so my JS function to copy from form1 to form2 works. And it does, partially.

If you look at the fiddle i’ve pasted just the necessary bits of code.

  • the input type with name="txtTitle" gets copied from name="hidTitle".
  • the input type with name="txtCount" does not get copied from name="hidCount".

But it should be working since it’s basically the same code?

http://jsfiddle.net/mVfZa/7/

  • 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-27T20:04:29+00:00Added an answer on May 27, 2026 at 8:04 pm

    From your JSFiddle – I think this is a simple mistake. you wrote
    formDel.hidSoundeFileName instead of formDel.hidSoundFileName

    remove the redundant “e” and you should be fine.
    below is my working example. let me know if I missed something.

    <!DOCTYPE html>
    <html>
        <head>
    
            <script type="text/javascript">
                function copyEditDeleteSongFormData(formDel, formUpd) {
                    formUpd.txtTitle.value = formDel.hidTitle.value;
                    formUpd.fileSoundFileName.value = formDel.hidSoundeFileName.value;
                    formUpd.txtCount.value = formDel.hidCount.value;
                    formUpd.txtTitle.value = formDel.hidTitle.value;
                }
    
            </script>
        </head>
        <body>
    
            <form action="adminSong.php" method="post" name="frmNewUpdateSong" id="fUpdateSong" enctype="multipart/form-data"
                  onsubmit="return verifySongDetails(this)" action="adminSong.php">
                <fieldset>
                    <legend>New/Edit Songs</legend>
                    Artist
                    <br>
                    <select name="cboArtist" id="ddList">
                        <option value=''></option>
                        <option value='test1'>test1</option>
                        <option value='test2'>test2</option>
                        <option value='test3'>test3</option>
                    </select><br>
                    Song
                    <br>
                    <input type="text" name="txtTitle" id="txTitle">
                    <br>
                    <input type="file" name="fileSoundFileName">
                    <br>
                    <br>
                    Count
                    <br>
                    <input type="text" name="txtCount">
                    <br>
                    <input type="submit" name="btnSave" value="Save"/>
                    <input type="button" name="btnReset" value="Reset" onclick="resetNewUpdateSongFormData(this.form)"/>
                    <br>
                    <input type="hidden" name="hidId">
                    <input type="hidden" name="hidSoundFileName">
                    <br>
                </fieldset>
            </form>
            <br>
    
    
            <form action="#" method="post" name="frmEditDeleteSong" id="fDeleteSong" enctype="multipart/form-data">
                <fieldset>
                    <legend>Stored Songs</legend>
                    id: <br/>
                    artistid:<br/>
                    title:<br/>
                    sound:<br/>
                    count:<br/>
                    changedate:<br/>
                    <input type="hidden" name="hidId">
                    <input type="hidden" name="hidArtistId" value="">
                    <input type="hidden" name="hidTitle" value="Songtest">
                    <input type="hidden" name="hidCount" value="Count123">
                    <input type="hidden" name="hidSoundFileName">
    
                    <br>
                    <input type="button" name="btnEdit" value="Edit"
                           onclick="copyEditDeleteSongFormData(this.form, frmNewUpdateSong)"/>
                    <input type="submit" name="btnDelete" value="Delete" onclick="verifyDeleteOfSong(this.form)"/>
                    <br>
    
                </fieldset>
            </form>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very similar problem, but i cant seem to figure it out,
I have been looking at tutorials and yet I can't seem to figure out
Alright, I've been at this for days and can't seem to figure out what
I have a problem which I cant seem to find answer to through searches
I have a weird problem that i can't figure out a solution for: I've
I cant seem to figure out how to calculate the incline of a curve
I have been doing a lot of searching and still can't seem to figure
I have a strange issue with my code I can't seem to figure out.
I've been digging around everywhere and I can't seem to figure this out. It's
I have been working on this problem for quite some time and can't figure

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.