Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts

    a few jquery questions

    1. how can i change my upload button to my load.gif image?

    i've tried:
    PHP Code:
        $('#upload').click(function() {
            $(
    this).val('');
        }); 
    and as far as i'm ware u cant add <img> tags to a <input> value.......

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    I don't get it

    First you say you want to replace the button with a gif image, then you are talking about adding an image to an input value ...

    How about having both elemens (the button and the image) next to each other in your markup, where the image is hidden initially? Then on click of the button you hide the button and show the image. This will look like the image replaces the button.

  • Users who have thanked devnull69 for this post:

    Chris-2k (08-28-2012)

  • #3
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    Thx, ive done it.

  • #4
    New Coder
    Join Date
    Aug 2012
    Location
    Kalamazoo, MI
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Best way to do this would be to just add a background via CSS to the button.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •