Results 1 to 2 of 2

Thread: help with click() in firefox

  1. #1
    Join Date
    Jul 2009

    Smile help with click() in firefox

    hello all,

    okay, I'm not going into very much detail, but instead I will outline what I need and for what.

    I don't like the appearance of the <input type='file'> element and the textbox that accompanies the element so i like taking another element and make it call the fileupload element


    <input type='file' style='position: absolute; visibility: hidden;'>
    <a href="#" onclick="this.previousElement.click()">Upload</a>

    i basically am giving the link the functionality to open up a file selection box. ofcourse, then ill have to get the value of the fileupload element to retrieve the file

    MY PROBLEM: it doesn't work in firefox

    any alternatives? solutions?


  2. #2
    Join Date
    Jul 2009
    woops, it's previousSibling, not previousElement

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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