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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:47:13+00:00 2026-05-20T18:47:13+00:00

I have created an image upload control, however i’m not satisfied with its look.

  • 0

I have created an image upload control, however i’m not satisfied with its look. I only want the button shown not the text box to the left of the button. Is there any way I can just use the normal button control or linkbutton control to to get the file dialog to open.

  • 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-20T18:47:13+00:00Added an answer on May 20, 2026 at 6:47 pm

    I got this simple example working in Firefox 4, IE6 and IE9 but unfortunately it doesn’t work in Chrome 10.

    <script type="text/javascript">
        $(document).ready(function () {
            var cnt = 1; // for interfering id's
            $('#upload').click(function () {
    
                // adds a new file-browser upload control and calls the AppendFilesToList with file information
                $("#files").append("<input type=\"file\" id=\"fileupload" + cnt + "\" onchange=\"javascript:AppendFilesToList(this.value);\" style=\"display:none;\" />");
                document.getElementById("fileupload" + cnt).click(); // calls the browsers file-upload dialog
    
                cnt++;
            });
        });
        // appends file information to a div
        function AppendFilesToList(evt) { $("#listfiles").append(evt + "<br/>"); }
    </script>
    
    <div id="files"></div>
    <div id="listfiles"></div>
    
    <br />
    
    <input type="button" id="upload" value="Select files" />
    

    You can, however, check out these post about styling ‘s: http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom and http://www.quirksmode.org/dom/inputfile.html

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

Sidebar

Related Questions

I have created jquery image slider and it is working good. However i have
I have created a Windows CE6 Image through Platform Builder, and I now want
I have created a 3D structure(basically an image) dynamically using kit3D.However,I wanted to zoom
I have problem with dynamically created image (JavaScript). I want to change the innerHTML
I have created a form that allows users to upload an image to a
I have 2 cucumber scenarios that simulate paperclip image upload. I want to remove
I have created a program which allows me to upload images to my server.
I have created a XML image gallery, which displays text in between each slide.
I have created PHP GD image for captcha, file called image.php each time it
I have a dynamically created image that I am saving to a stream so

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.