Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript double click to open file selector in IE

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #147649
    kanshul2013
    Participant

    Below the JSfiddle with my code

    http://jsfiddle.net/ssNbF/5/

    After the “Select zip file :” label there is supposed to be an image which user can click on order to open the file selector (CSS – label.cabinet). Since I couldn’t upload the image to JSFiddle, you’ll need to click the blank area after this label in order to open the file selector.

    Now, in chrome and Firefox, I can just do a single click and it opens the file selector. But for IE9 I need to do a double click. Is there a way to open the file selector with single click in IE as well.

    Thank you

    #147686
    Senff
    Participant

    Since you want the button to be 79 pixels wide, that’s also what you should assign to the input.file: http://jsfiddle.net/senff/kZVRq/1/

    #148225
    kanshul2013
    Participant

    Thanks a lot, Senff. This solved the problem.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.